浏览代码

Turn off nginx logs on install

Bob Mottram 8 年前
父节点
当前提交
0dbebd4c4f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-utils-web

+ 4
- 0
src/freedombone-utils-web 查看文件

@@ -518,6 +518,10 @@ function install_web_server {
518 518
     # install nginx
519 519
     apt-get -yq install nginx php5-fpm git
520 520
 
521
+    # Turn off logs by default
522
+    sed -i 's|access_log.*|access_log = /dev/null;|g' /etc/nginx/nginx.conf
523
+    sed -i 's|error_log.*|error_log = /dev/null;|g' /etc/nginx/nginx.conf
524
+
521 525
     # limit the number of php processes
522 526
     sed -i 's/; process.max =.*/process.max = 32/g' /etc/php5/fpm/php-fpm.conf
523 527
     #sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php5/fpm/php-fpm.conf