aris
August 17, 2012, 6:19pm
1
hi guys
i have nginx on 2 servers. in one of them i’m getting the following
correct
output:
netstat -tulpn | grep -e nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
4735/nginx
ps aux | grep nginx
root 4735 0.0 0.0 41028 944 ? Ss Aug10 0:00 nginx:
master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 4736 1.8 0.0 45644 6160 ? R Aug10 177:10 nginx:
worker process
However on the other I’m getting the following wrong output:
netstat -tulpn | grep -e nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
7650/nginx.conf
ps aux | grep nginx
root 7650 0.0 0.0 44632 1092 ? Ss 00:27 0:00 nginx:
master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 7651 0.1 0.2 48412 5552 ? S 00:27 1:04 nginx:
worker process
Both servers are working fine and nginx is serving the pages without
problems however I don’t know why on one of my servers it is running as
‘nginx.conf’ when it should be running as ‘nginx’
Any ideas?
Posted at Nginx Forum:
theguy
August 17, 2012, 6:33pm
2
HI,
Please Paste your /etc/nginx/nginx.conf
THX.
Posted at Nginx Forum:
theguy
August 17, 2012, 6:49pm
3
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
worker_rlimit_nofile 8192;
events {
worker_connections 7168;
use epoll;
}
http {
server_names_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local]
“$request”
’
'$status $body_bytes_sent “$http_referer” ’
‘“$http_user_agent” “$http_x_forwarded_for”’;
access_log off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
keepalive_timeout 10;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;
include /etc/nginx/conf.d/*.conf;
}
Both are running the same nginx.conf so I don’t know what’s going on.
Im running CentOS 6.3 64-bits
Posted at Nginx Forum: