中国真实偷乱视频,东京道一本热中文字幕,久久精品国产99国产精品亚洲,欧美激情一区二区三区在线

Board logo

標(biāo)題: [求助] 為了刪除access.log,導(dǎo)致nginx重啟失敗怎么辦? [打印本頁]

作者: rere    時(shí)間: 2017-11-27 15:29     標(biāo)題: 為了刪除access.log,導(dǎo)致nginx重啟失敗怎么辦?

因?yàn)閍ccess.log太占空間,按交流群里網(wǎng)友的意見登錄FTP將它刪除了,但是df查看空間并沒有釋放,不知道怎么辦?

后來,根據(jù)http://m.ahbydz.com/bbs/thread-2104-1-1.html 想要關(guān)閉日記,
因此登錄ssh,輸入
sed -i '/log_format/a
access_log off;' /www/wdlinux/nginx/conf/nginx.conf
結(jié)果重啟nginx時(shí)
變成這樣子:
  1. [root@h75zr4Z ~]# sed -i '/log_format/a
  2. > access_log off;' /www/wdlinux/nginx/conf/nginx.conf
  3. [root@h75zr4Z ~]# service nginxd restart
  4. Stopping nginx: nginx: [emerg] unknown directive "ccess_log" in /www/wdlinux/nginx-1.8.1/conf/nginx.conf:2
  5.                                                            [  OK  ]
  6. Starting nginx: nginx: [emerg] unknown directive "ccess_log" in /www/wdlinux/nginx/conf/nginx.conf:2
  7.                                                            [FAILED]
復(fù)制代碼
不知道要怎么辦了啊,緊急求助。




歡迎光臨 WDlinux官方論壇 (http://m.ahbydz.com/bbs/) Powered by Discuz! 7.2