码迷,mamicode.com
首页 >  
搜索关键字:脚本控制nginx    ( 1个结果
脚本控制nginx的启动,关闭,重载等
#!/bin/bashstart(){if[`netstat-tnlp|grep-w80|wc-l`-eq1];thenecho"Nginxisrunning......"exit1else/application/nginx/sbin/nginxsleep2echo"Nginxstartsuccessed......"fi}stop(){if[`netstat-tnlp|grep-w80|wc-l`-ne1];thenecho"Nginxisnotrunning......"exit1else/applic..
分类:其他好文   时间:2016-05-10 18:53:00    阅读次数:144
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!