浏览代码

mod: nginx

Ben 11 月之前
父节点
当前提交
9a9050968f
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. 0 4
      js/nginx.conf
  2. 1 1
      js/run_nginx.sh

+ 0 - 4
js/nginx.conf

@@ -1,9 +1,6 @@
 worker_processes  2;  ## 默认1,一般建议设成CPU核数1-2倍
-error_log  /var/log/error.log; ## 错误日志路径
-pid  /var/log/nginx.pid; ## 进程id
 
 events {
-    use epoll;
     worker_connections  2048;
 }
 
@@ -16,7 +13,6 @@ http {
     log_format   main '$remote_addr - $remote_user [$time_local]  $status '
     '"$request" $body_bytes_sent "$http_referer" '
     '"$http_user_agent" "$http_x_forwarded_for"';
-    access_log   /var/log/access.log  main;
     sendfile     on;
     tcp_nopush   on; # sendfile开启时才开启。
 

+ 1 - 1
js/run_nginx.sh

@@ -1,2 +1,2 @@
 ps axu | grep 'nginx' | awk '{print "kill -9 " $2}' | sh -x
-nginx -c /root/nginx.conf
+nginx -c $(pwd)/js/nginx.conf