增加nginx源
vim /etc/yum.repos.d/nginx.repo
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
安装nginx
yum -y install nginx
配置nginx
vim /etc/nginx/nginx.conf
时间: 2024-10-12 16:01:27
增加nginx源
vim /etc/yum.repos.d/nginx.repo
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
安装nginx
yum -y install nginx
配置nginx
vim /etc/nginx/nginx.conf