rpm -qa|grep pcre*pcre-7.8-7.el6.x86_64pcre-devel-7.8-7.el6.x86_64如果缺少,可以用yum来安装,也是建议用yum方式安装。yum install pcre pcre-devel -yrpm -qa|grep openssl*rpm -qa|grep openssl*openssh-5.3p1-122.el6.x86_64openssh-clients-5.3p1-122.el6.x86_64openssl-devel-1.0.1e-57.el6.x86_64openssl-1.0.1e-57.el6.x86_64openssh-server-5.3p1-122.el6.x86_64yum install openssl openssl-devel -yyum install lsof -yuseradd nginx -s /sbin/nologin -Mscp /Users/vincent/Downloads/nginx-1.12.0.tar.gz root@10.199.199.89:/root/tar xf nginx-1.12.0.tar.gzcd nginx-1.12.0./configure --user=nginx --group=nginx --prefix=/application/nginx --with-http_stub_status_module --with-http_ssl_modulemake make installls -l /application/nginx/ls -l /application/nginx/总用量 16drwxr-xr-x. 2 root root 4096 5月 22 08:49 confdrwxr-xr-x. 2 root root 4096 5月 22 08:49 htmldrwxr-xr-x. 2 root root 4096 5月 22 08:50 logsdrwxr-xr-x. 2 root root 4096 5月 22 08:49 sbin/application/nginx/sbin/nginx -tnginx: the configuration file /application/nginx/conf/nginx.conf syntax is oknginx: configuration file /application/nginx/conf/nginx.conf test is successful启动命令/application/nginx/sbin/nginxlsof -i :80COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEnginx 4352 root 6u IPv4 16423 0t0 TCP *:http (LISTEN)nginx 4353 nginx 6u IPv4 16423 0t0 TCP *:http (LISTEN)netstat -lnt|grep 80tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTENwget 127.0.0.1 curl 127.0.0.1vim /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT:wq!service iptables restarthttp://10.199.199.89Welcome to nginx!