系统自带源不含nginx。可以利用 epel(xtra Packages for Enterprise Linux) 这个开源的yum源,这个是针对RHEL设计的,由Fedora组织维护,可以用于CentOS、RHEL。
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm yum -y install nginx chkconfig nginx on
如果是centos 6 请替换为
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
原文链接:https://www.qiquanji.com/post/5143.html
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

微信扫码关注
更新实时通知