1. Add a port in nginx.conf;
2. Restart nginx configuration file Nginx &;; sreload
3. ps & ampEf|grepnginx View the nginx process;
4, set the firewall open port, firewall &; Cmd& lists and. All view the open port numbers, sudo firewall &; Cmd & Add & port =18081/TCP & Permanently open port 1808 1.
5. Restart the firewall. Reload.