Enter the command rpm -ivh nginx-1.14.2-1.el7_4.ngx.x86_64.rpmto install Nginx
Enter the command systemctl start nginxto start the service Nginx
Enter the command systemctl restart nginxor nginx -s reloadrestart Nginx
Nginx modify port, path: /etc/nginx/conf.dHere there is a default configuration file called default.conf, modify the port inside listen listening, you can restart Nginx
Directory /etc/nginx/conf.dinto the other conf configuration file can be mapped. Because the directory /etc/nginx/nginx.conffile which has been configured to introduce /etc/nginx/conf.dall conf files.