The httpd service of linux modifies the default web page login port to 8080

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

insert image description here

Change to ServerName www.example.com:8080

5. The next time you visit the webpage, you need to add the :8080format

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

Guess you like

Origin blog.csdn.net/qq_17576885/article/details/123143269