Nginx——关闭Nginx日志

  有时候,nginx日志十分吓人,我们有个客户受到攻击,nginx出现too many connections错误,日志5分钟就写入了10GB,硬盘很快就会满了。 那么,如何关闭Nginx日志?怎么取消/停止Nginx日志? 可以修改nginx.conf

access_log /dev/null;
error_log /dev/null;

这样全部把他们丢到系统的黑洞里了。不用每时每刻都往系统磁盘疯狂的读写日志了 还延长硬盘的寿命。
修改完,重启Nginx( kill -HUP `cat logs/nginx.pid` )即可。

21 thoughts on “Nginx——关闭Nginx日志

  1. Pingback: http://businessdirectory.pl/cyganka-1637.php

  2. Pingback: jasa99

  3. Pingback: sen bir oğlansın

  4. Pingback: CBD oil

  5. Pingback: www.1lapakqq.site

  6. Pingback: www.cbdicals.com

  7. Pingback: i99 casino

  8. Pingback: 바카라

  9. Pingback: porn

  10. Pingback: 사설토토

  11. Pingback: 조커바카라

  12. Pingback: dominoqq

  13. Pingback: 바카라

  14. Pingback: https://e-poradnia.edu.pl/

  15. Pingback: ciprofloxacin price without insurance

  16. Pingback: buy tadalafil 20mg price

  17. Pingback: con heo đất mẹ mua cho con heo đất

  18. Pingback: 부산 오피

  19. Pingback: Types Of Fishing Poles

  20. Pingback: guaranteed ppc reviews

  21. Pingback: buy pfizer viagra

Comments are closed.