Home>Article>Backend Development> How to modify the port number in php7 under linux

How to modify the port number in php7 under linux

藏色散人
藏色散人 Original
2020-08-19 09:02:56 4664browse

How to set the port number in php: first find the path where the PHP configuration file is located; then pass the command "vim /usr/local/php7/etc/php-fpm.d/www.conf listen = 0.0.0.0: 9000" just change the port number.

How to modify the port number in php7 under linux

Recommended: "PHP Video Tutorial"

Change the port number of php7 under Linux

The path where the installed PHP7 configuration file is located 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

Installation The path of the 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

The above is the detailed content of How to modify the port number in php7 under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn