Specific method:
(Learning video recommendation: php video tutorial)
Go to the xampp installation directory and click Enter apache\conf and use the editor to open the "httpd.conf" file
Change Listen 80 to Listen 8081
Change ServerName localhost:80 to ServerName localhost:8081
Restart the apache service in XAMPP Control Panel
Related recommendations:php training
The above is the detailed content of How to modify xampp default port number. For more information, please follow other related articles on the PHP Chinese website!