CentOS 6 yum 安装 nginx

# cat /etc/redhat-release
CentOS release 6.5 (Final)

# vi /etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/x86_64/
gpgcheck=0
enabled=1

# yum install nginx

启动
# service ngnix start

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

粤ICP备15062915号-1