摘要:
shell 脚本 cat ngx_daemon.sh #!/bin/bash nginxpid=$(ps -C nginx --no-header|wc -l) if [ "$nginxpid" = "0" ]; then # 启动 nginx /app/openresty/nginx/sbin/n 阅读全文
posted @ 2022-10-12 19:20
谢端阳
阅读(214)
评论(0)
推荐(0)
摘要:
shell 脚本 #!/bin/bash startTime=`date +%Y%m%d-%H:%M:%S` startTimelog=`date +%Y%m%d%H%M%S` startTime_s=`date +%s` set -B # enable brace expansion # 15 m 阅读全文
posted @ 2022-10-12 16:41
谢端阳
阅读(354)
评论(0)
推荐(0)
摘要:
vim cat_nginx_log.sh #!/bin/bash #nginx日志文件的存放路径logs_path='/app/openresty/nginx/logs' mv $logs_path/access.log $logs_path/access.$(date +%Y%m%d).logmv 阅读全文
posted @ 2022-10-10 15:50
谢端阳
阅读(54)
评论(0)
推荐(0)
浙公网安备 33010602011771号