Home>Article>Backend Development> How to change the port number in php7
How to modify the port number of php7: 1. Modify the php7 port number through "vim /usr/local/php7/etc/php-fpm.d/www.conf listen = 0.0.0.0:9000"; 2. Start php through "/usr/local/php7/sbin/php-fpm".
The operating environment of this tutorial: linux5.9.8 system, PHP7 version, Dell G3 computer.
How to change the port number in php7?
Change the port number of php7 under Linux
The path of the installed PHP7 configuration file is /usr/local/php7/etc
1 .Modify the php7 port number
vim /usr/local/php7/etc/php-fpm.d/www.conf listen = 0.0.0.0:9000
Start php
/usr/local/php7/sbin/php-fpm
The path to the installed PHP5 configuration file is /usr/local/php5/etc
2.Modify the php5 port number
vim /usr/local/php5/etc/php-fpm.conf listen = 0.0.0.0:9001 /usr/local/php5/sbin/php-fpm
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to change the port number in php7. For more information, please follow other related articles on the PHP Chinese website!