host nginx on port other than 80 code example
Example 1: chaneg default port on nginx
# systemctl restart nginx
# netstat -tlpn| grep nginx
# ss -tlpn| grep nginx
Example 2: chaneg default port on nginx
listen 3200 default_server;
# systemctl restart nginx
# netstat -tlpn| grep nginx
# ss -tlpn| grep nginx
listen 3200 default_server;