1, to see whether the latest version
yum info nginx
2, set the file nginx.repo
vi /etc/yum.repos.d/ modify nginx.repo
# Add the following contents
[nginx]
name=nginx repo
baseurl = http: //nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
3, upgrade or install
yum update nginx
or
yum install -y nginx
4, if the conflict between nginx module versions, for example the following cases, the unloading module
If you hit a file /usr/lib64/nginx/modules/ngx_http_geoip_module.so from install of nginx-module-geoip-1: 1.16.0-1.el7.ngx.x86_64 conflicts with file from package nginx-mod-http-geoip -1: 1.12.2-3.el7.x86_64 such module error.
yum remove nginx-mod*
5, the module reinstalled
yum install nginx-module-*
6, restart the service nginx
systemctl restart nginx
If before the start of nginx is first executed
pkill nginx
Computer rental hang idle resources to earn money electricity
use of idle computer resources to earn pocket money (for students, housewives)
Online generated outside the chain tool (International Edition)
generated on-line outside the chain tool (Chinese version)