port nginx 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