nginx一键启动停止.重启脚本

上传:rostone 浏览: 28 推荐: 0 文件:PDF 大小:23KB 上传时间:2021-01-17 01:47:01 版权申诉
注:有问题或更好可以一起探讨谢谢 #!/bin/bash nginx=/usr/local/nginx/sbin/nginx echo nginx一键启动,停止,查看..... read -ep 请输入你的操作,1.stop,2.start,3.reload,4.status(1,2,3,4): nginx1 case $nginx1 in 1) netstat -nlpt | grep nginx > /dev/null if [ $? -eq 0 ];then pkill -15 nginx echo nginx成功停止... else
上传资源
用户评论