1. ps aux|grep 程序 -------->查看当前程序是否运行
ps aux|grep nginx
2. tar -zxvf 压缩包 ---------> 解压缩
tar -zxvf apache-tomcat-7.0.85.tar
3. /etc/init.d/iptables status ------------->查看防火墙状态
/etc/init.d/iptables stop ----------------->关闭防火墙
4. ./程序.sh ---------->启动sh脚本
原文:https://www.cnblogs.com/iscys/p/9515115.html