LNMP3

Nginx訪問日誌

vim /usr/local/nginx/conf/nginx.confnginx

vim /usr/local/nginx/conf/vhost/test.com.confvim

/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reloadspa

訪問日誌

cat /tmp/test.com.logcrontab


Nginx日誌切割

vim /usr/local/sbin/nginx_log_rotate.shtest

sh -x /usr/local/sbin/nginx_log_rotate.shim

ls /tmp/img

crontab -etab


靜態文件不記錄日誌和過時時間

vim /usr/local/nginx/conf/vhost/test.conf文件

/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reload

訪問

相關文章
相關標籤/搜索