四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区

Board logo

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

作者: rere    時間: 2017-11-27 15:29     標題: 為了刪除access.log,導致nginx重啟失敗怎么辦?

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

后來,根據(jù)http://cd-genova.com/bbs/thread-2104-1-1.html 想要關閉日記,
因此登錄ssh,輸入
sed -i '/log_format/a
access_log off;' /www/wdlinux/nginx/conf/nginx.conf
結果重啟nginx時
變成這樣子:
  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]
復制代碼
不知道要怎么辦了啊,緊急求助。




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