摘要:
cut_nginx_log.sh:logs_path="/usr/local/nginx/logs/"mv ${logs_path}access.log ${logs_path}access_$(date -d "yesterday" +%Y%m%d).logkill -USR1 `cat /usr/local/nginx/logs/nginx.pid`然后将cut_nginx_log.sh加入到crontab中,定时在每天0点执行。 阅读全文
摘要:
post请求:http://127.0.0.1/do?action=1&account=test11111用curl来请求如下:curl -d action=1 -d account=test11111 http://127.0.0.1/do 阅读全文