pwd 当前目录
halt 关机
rm -rf a travel 删除
关闭tomcat
cd /usr/local/tomcat/apache-tomcat-7.0.57/bin
./shutdown.sh
开启tomcat
cd /usr/local/tomcat/apache-tomcat-7.0.57/bin
sh startup.sh
关闭防火墙 开启nginx
service iptables stop;
cd /usr/local/nginx/sbin
./nginx
cd /usr/local/tomcat/apache-tomcat-7.0.57/webapps | rz 上传项目
防火墙打开3306(mysql) 8080(tomecat) 2181(zookeeper) 端口:
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 2181-j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables status
find / -name "*zookeeper-3.4.6.tar.gz"
进入Zookeeper的bin目录,启动服务命令
cd /usr/local/zookeeper-3.4.6/bin
./zkServer.sh start
停止服务命令
cd /usr/local/zookeeper-3.4.6/bin
./zkServer.sh stop
查看服务状态:
cd /usr/local/zookeeper-3.4.6/bin
./zkServer.sh status
|
|