1.启动zookeeper:bin/zkServer.sh start
关闭zookeeper:bin/zkServer.sh stop
查看zookeeper状态:bin/zkServer.sh status
注意要关闭linux的防火墙。
2、启动和关闭tomcat
bin/startup.sh
bin/shutdown.sh
查看日志 : tail -f logs/catalina.out
配置文件:server.xml
3.启动solr
cd /usr/local/solr/tomcat/
bin/startup.sh
tail -f logs/catalina.out
4.redis启动:
cd /usr/local/redis/bin
./redis-server redis.conf
5.solr集群与zookeeper的连接
cd /usr/local/solr-cloud//zookeeper01/bin
./zkCli.sh -server 192.168.25.128:2182
设置一个总的tomcat启动文件:vim start-tomcat.sh
内容:
/usr/local/solr-cloud/tomcat01/bin/startup.sh
/usr/local/solr-cloud/tomcat02/bin/startup.sh
/usr/local/solr-cloud/tomcat03/bin/startup.sh
/usr/local/solr-cloud/tomcat04/bin/startup.sh
修改该文件为可执行:chmod +x start-tomcat.sh
启动:./start-tomcat.sh
6.启动ActiveMQ
cd apache-activemq-5.12.0/bin
查看状态:./activemq status
启动:./activemq start