停止rsyslog 紀錄
sudo systemctl stop rsyslog.service
以下這指令會停止當前執行的rsyslog,以確保rsyslog在下次重開機時不會再啟動,請使用以下指令:
sudo systemctl disable rsyslog.service
Nginx
server {
    listen       80;
    server_name  _;
    #access_log  /var/log/nginx/access.log  main;
  ...
server {
    listen       80;
    server_name  example.com
    access_log  off;
重啟服務
/etc/init.d/nginx restart
