关于php -fpm 出现127.0.0.1:9000已经被占用

今天安装启动PHP时出现下面的错误:

[[email protected] etc]# /application/php/sbin/php-fpm

错误:

[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

解决方法:

[[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

再次启动未报错

[[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   1600  0 21:44 pts/0    00:00:00 grep php-fpm

时间: 2024-10-29 19:11:41

关于php -fpm 出现127.0.0.1:9000已经被占用的相关文章

ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)

刚安装完PHP,启动时报错: # /etc/init.d/php-fpm start Starting php-fpm [15-Apr-2017 13:21:13] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [15-Apr-2017 13:21:13] ERROR: FPM initialization failed failed 解决方法: #

使用 IDEA 创建 Maven Web 项目 (异常)- Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket'

运行环境: JDK 版本:1.8 Maven 版本:apache-maven-3.3.3 IDEA 版本:14 maven-jetty-plugin 配置: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <configuration> <webAppSourceDirectory>${pro

idea启动tomcat服务失败 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:

我的工程是从eclipse生成的,个人习惯用idea开发.重复了一遍以往正常的不能再正常了的导入配置,结果遇到了如下问题: SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start comp

IntelliJ运行下载的Servlet时报错 Error running Tomcat 8.5.8: Unable to open debugger port (127.0.0.1:49551): java.net.SocketException

学习Java Servlet时,从Wrox上下载了示例代码,准备run/debug时发现以下错误: Error running Tomcat 8.5.8: Unable to open debugger port (127.0.0.1:49551): java.net.SocketException "Socket closed" /Users/GuQiang/Tomcat/apache-tomcat-8.5.8/bin/catalina.sh stopUsing CATALINA_B

解决MySQL workbench的Can&#39;t connect to MySQL server on &#39;127.0.0.1&#39;(10061)问题

如题,今天打开MySQL时,出现了这种问题,无法连接到数据库 问题原因:The error (2003) Can't connect to MySQL server on 'server' (10061) indicates that the network connection has been refused. You should check that there is a MySQL server running, that it has network connections enab

【PHP_PHP环境搭建】_01_localhost能访问apache,但127.0.0.1却不能。

问题:Apache服务器启动之后,localhost能访问启动项,但127.0.0.1却不能. 解决办法: 1.打开apache安装路径中的http.conf文件,找打以下内容 1 #   onlineoffline tag - don't remove    2     Order Deny,Allow    3    Deny from all    4   Allow from 127.0.0.1 2.在Deny from all   前加上#来注释掉此行,并在Allow from 127

android 127.0.0.1/localhost connection refused,在模拟器上应该用10.0.2.2访问你的电脑本机

调试中通过android simulator模拟器链接localhost或者127.0.0.1,因为我在电脑上面建立了apache,我的代码大概就是URL url = new URL(urlString);     URLConnection urlconn = url.openConnection(); 但是报错了!! Exception 1:java.net.ConnectException: localhost/127.0.0.1:8080 - Connection refused 问题是

localhost与127.0.0.1的区别

今天新开了一个服务器,代码挪移过去的时候,竟然数据库连接不上,看了一下,原来将配置从127.0.0.1改为localhost就可以了.看看下面这两个的区别. 很多人会接触到这个ip地址127.0.0.1.也许你会问127.0.0.1是什么地址?其实127.0.0.1是一个回送地址,指本地机,一般用来测试使用.大家常用来ping 127.0.0.1来看本地ip/tcp正不正常,如能ping通即可正常使用. 对于大多数习惯用localhost的来说,实质上就是指向127.0.0.1这个本地IP地址.

Linux无法连接上127.0.0.1,拒绝连接,更新时提示无法下载,无法正常使用apt-get update

你是否遇到过这种情况,在Linux以apt-get update 时更新的时候无法更新,提示一下内容 p { margin-bottom: 0.25cm; line-height: 120% } 错误:1 http://ppa.launchpad.net/diesch/testing/ubuntu zesty InRelease 无法连接上 127.0.0.1:42165 (127.0.0.1). - connect (111: 拒绝连接) 错误:2 http://archive.ubuntuk