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
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
訪問