centos手动安装nginx

yum install openssl-devel 
yum install pcre-devel 
wget http://sysoev.ru/nginx/nginx-0.8.53.tar.gz
tar -zxvf nginx-0.8.53.tar.gz
cd nginx-0.8.53
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-ipv6
make && make install 
启动nginx
/usr/local/nginx/sbin/nginx
如果提示如下错误 [emerg]: getpwnam(“www”) failed 可以修改nginx.conf配置文件 将 #user nobody前面的注释符号去掉,然后再启动nginx就可以了