[Linux] Nginx offline installation

Linux system installed Nginx offline

rpm installation

  1. Enter the command rpm -ivh nginx-1.14.2-1.el7_4.ngx.x86_64.rpmto install Nginx
  2. Enter the command systemctl start nginxto start the service Nginx
  3. Enter the command systemctl restart nginxor nginx -s reloadrestart Nginx
  4. 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
  5. 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.

Encoding installation

[View tutorial link]

Guess you like

Origin blog.csdn.net/cai454692590/article/details/90679472