About PHP-FPM appears 127.0.0.1:9000 has been occupied

Source: Internet
Author: User

installation starts today PHP when the following error occurs:

[Email protected] etc]#/APPLICATION/PHP/SBIN/PHP-FPM

Error:

[03-aug-2017 21:30:29] error:failed to open Error_log (/app/logs/php-fpm.log): No such file or directory (2)

[03-aug-2017 21:30:29] Error:failed to post process the configuration

[03-aug-2017 21:30:29] ERROR:FPM initialization failed


Workaround:

[Email protected] etc]# Netstat-lntup | grep 9000

TCP 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 12810/php-fpm

[Email protected] etc]# Killall PHP-FPM


Start again without error

[Email protected] etc]#/APPLICATION/PHP/SBIN/PHP-FPM

[Email protected] etc]#


[Email protected] etc]# Ps-ef|grep PHP-FPM

Root 12885 1 0 21:33? 00:00:00 Php-fpm:master Process (/application/php5.3.27/etc/php-fpm.conf)

Nginx 12886 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12887 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12888 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12889 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12890 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12891 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12892 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12893 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12894 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12895 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12896 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12897 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12898 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12899 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12900 12885 0 21:33? 00:00:00 Php-fpm:pool www

Nginx 12901 12885 0 21:33? 00:00:00 Php-fpm:pool www

Root 12915 0 21:44 pts/0 00:00:00 grep php-fpm


About PHP-FPM appears 127.0.0.1:9000 has been occupied

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.