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


Last update: 2021-12-02
Back to top