linux nginx 启动脚本 [root@webtest76 ~]# vi /etc/init.d/nginx #!/bin/bash # nginx Startup script for the Nginx HTTP Server # this script create it by jackbillow at . # it is v. version. # if you find any errors on this scripts,please contact jackbillow.…
自动每天定时切割Nginx日志的脚本,很方便很好用,推荐给大家使用.本脚本也是参考了张宴老师的文章,再次感谢张宴老师.1.创建脚本/usr/local/nginx/sbin/cut_nginx_log.shvi /usr/local/nginx/sbin/cut_nginx_log.sh输入以下内容: #!/bin/bash # This script run at : # The Nginx logs path #edit: www.jbxue.com logs_path=”/home/www…