yum groupinstall “Development libraries” –y #Nginx的安装需要依赖于gcc、openssl-devel、pcre-devel、zlib-devel这四个包,所以在使用源码安装之前请确保这四个包已经安装,命令如下: rpm –ivh gcc openssl-devel pcre-devel zlib-devel #为nginx建立安全运行账户: groupadd -r nginx useradd -r -g nginx -s /sbin/nologin -M nginx