zipusyan commited on
Commit
7c22649
·
verified ·
1 Parent(s): 4dc2336

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +4 -5
nginx.conf CHANGED
@@ -1,7 +1,7 @@
1
- # 运行为 root 用户
2
  user root;
3
  worker_processes auto;
4
  pid /run/nginx.pid;
 
5
 
6
  events {
7
  worker_connections 768;
@@ -16,16 +16,15 @@ http {
16
  include /etc/nginx/mime.types;
17
  default_type application/octet-stream;
18
 
19
- # 必要的目录配置
20
  client_body_temp_path /tmp/nginx_body 1 2;
21
  proxy_temp_path /tmp/nginx_proxy;
22
  fastcgi_temp_path /tmp/nginx_fastcgi;
23
 
24
- access_log /var/log/nginx/access.log;
25
- error_log /var/log/nginx/error.log;
26
 
27
  server {
28
- listen 80;
29
  server_name localhost;
30
 
31
  root /home/www;
 
 
1
  user root;
2
  worker_processes auto;
3
  pid /run/nginx.pid;
4
+ daemon off;
5
 
6
  events {
7
  worker_connections 768;
 
16
  include /etc/nginx/mime.types;
17
  default_type application/octet-stream;
18
 
 
19
  client_body_temp_path /tmp/nginx_body 1 2;
20
  proxy_temp_path /tmp/nginx_proxy;
21
  fastcgi_temp_path /tmp/nginx_fastcgi;
22
 
23
+ access_log /dev/stdout;
24
+ error_log /dev/stderr;
25
 
26
  server {
27
+ listen 8088;
28
  server_name localhost;
29
 
30
  root /home/www;