我要评分
获取效率
正确性
完整性
易理解

Deploying the Origin Server (Nginx)

For details about how to use and deploy Nginx, see Nginx Porting Guide. This section describes only the related settings.

  1. Modify the nginx.conf file.
    1. Open nginx.conf.
      vim nginx.conf
    2. Press i to enter the insert mode. Based on the Nginx proxy configuration, replace line 36 with the following content:
      listen  80 reuseport;

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Specify the configuration file to start Nginx.
    1
    /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf