1、[root@localhost 桌面]# vim /etc/httpd/conf/httpd.conf
2. Modify about 42 lines,
Listen 80
3. Comment the line and enter a new lineListen 8080
4. Comment about line 95,
#ServerName www.example.com:80
Change to ServerName www.example.com:8080
5. The next time you visit the webpage, you need to add the :8080
format
For example, the original webpage IP is 192.168.3.57=192.168.3.57:80,
and now you need to enter 192.168.3.57:8080 to access