how to see port use by nginx in ubuntu code example
Example 1: chaneg default port on nginx
# vi /etc/nginx/sites-enabled/default [On Debian/Ubuntu]
# vi /etc/nginx/nginx.conf [On CentOS/RHEL]
Example 2: chaneg default port on nginx
# systemctl restart nginx
# netstat -tlpn| grep nginx
# ss -tlpn| grep nginx
Example 3: chaneg default port on nginx
listen 3200 default_server;