# vi /etc/yum.repos.d/nginx.repo
# yum install nginx -y[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
# /etc/init.d/nginx restart
Reference :
Install
RHEL / Centos 6: Install Nginx Using Yum Command
沒有留言:
張貼留言