yum升级nginx或安装最新版本nginx
1.vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
yum update nginx
yum install -y nginx
如果出现
13536#13536: module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1012002 instead of 1015008 in /usr/share/nginx/modules/mod-http-geoip.conf:1
原因在于nginx模块版本之间的冲突
yum remove nginx-mod*
yum install nginx-module-*
systemctl start nginx
相关推荐
张立军的架构之路 2020-09-28
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10