找到配置文件:/etc/nginx/nginx.conf
默认端口如下80,将其修改为喜欢的端口就行,不过要确认一下端口是开放的
然后重启一下nginx:
[root@yuer nginx]# systemctl restart nginx.service
找到配置文件:/etc/nginx/nginx.conf
默认端口如下80,将其修改为喜欢的端口就行,不过要确认一下端口是开放的
然后重启一下nginx:
[root@yuer nginx]# systemctl restart nginx.service