增加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-12-22 07:13:18
增加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