linux 安装nginx
$ yum install pcre pcre-devel
$ yum install zlib zlib-devel
$ yum install openssl openssl-devel --setopt=protected_multilib=false
yum update openssl openssl-devel --setopt=protected_multilib=false
# chmod 777 /etc/nginx/
# chmod 777 /var/run
# chmod -R 777 /var/cache/nginx
# chmod -R 777 /var/log/nginx/
$ mkdir -p /etc/nginx/ngx
$ cp ngx/nginx.node.interface.conf /etc/nginx/ngx
$ nginx -t -c ngx/nginx.node.interface.conf
nginx: the configuration file /etc/nginx/ngx/nginx.node.interface.conf syntax is ok
nginx: configuration file /etc/nginx/ngx/nginx.node.interface.conf test is successful
$ nginx -c ngx/nginx.node.interface.conf
$ netstat -apn|grep LISTEN|grep 5000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 16089/nginx: master
$ nginx -s reload -c ngx/nginx.node.interface.conf
--备注
nginx-1.10.3-1.el7.ngx.x86_64.rpm