apche启动错误|httpd.pid overwritten — Unclean shutdown of previous Apache run?

APACHE启动成功,但无法接受任何请求,查看ERROR.LOG文件
[warn] pid file /opt/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?
大概意思是说PID文件一直被一个程序改写,我测试系统上还运行了RESIN,只要停止了就可以了


resin/bin/httpd.sh stop

resin/bin/httpd.sh stop

resin/bin/httpd.sh stop

方法2:

试图删除/usr/local/apache/logs/httpd.pid再重启也不行。
使用ipcs查看系统的信号量,发现是信号量sem已经满了,所以导致startssl无法启动。
据说是如果apache没有正常Stop掉的话,它的信号量是不会自动清除的,导致其一直滞留在内存中
于是,用以下命令清除sem信号量后,apache就可以正常启动了:

for i in `ipcs  | grep nobody | awk ‘print $2}‘`; do ipcrm -s $i; done

看来,以后我们需要慎用killall -9 httpd,尽量使apache能正常的stop

时间: 2024-10-26 23:26:50

apche启动错误|httpd.pid overwritten — Unclean shutdown of previous Apache run?的相关文章

解决apache启动错误httpd: Could not reliably determine the server's fully qualified domain name

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 1068) already running 编辑httpd.conf文件,搜索"#ServerName",添

解决apache启动错误"httpd:Could not reliably determine..."

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0

mysql 启动错误-server PID file could not be found

一.重新启动mysql数据库 [[email protected] ~]# service mysqld restartShutting down MySQL.[  OK  ]Starting MySQL.The server quit without updating PID file (/application/mysql-5.5.32/data/localhost.localdomain.pid).[FAILED] 二.停止mysql数据库 [[email protected] ~]# s

PHP Apache shutdown unexpectedly启动错误解释及解决办法

本文出自:http://blog.csdn.net/svitter 实验环境:Myeclipse10 + tomcat7.0 有时间会写windows和linux下的tomcat配置,现在时间有限,暂且不写了..有些东西也是没有理解透彻. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page language="java" contentType="

centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

今天在centOS下装mysql时出现了一个错误: 解决方案就是如图所示kill 4734 kill 4839 最后再执行[[email protected] src]# service mysql start就可以了 centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误

启动opensips时报下列错误 [[email protected] opensips]# opensipsctl start INFO: Starting OpenSIPS : ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed 查看日志文件 [[email protected] opensips]# tail -f /var/log/messages May 14 15:52:41 Op

解决apache启动错误:httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 127.0.0.1 for ServerName

启动apache遇到提示: [[email protected] conf]# ../bin/apachectl -thttpd: apr_sockaddr_info_get() failed for bqh-119httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameSyntax OK[[email protected] conf]#

解决apache启动错误

问题描述:通过yum install -y httpd 安装好Apache后启动报错,如下: [[email protected] ~]# service httpd start 正在启动 httpd:httpd: apr_sockaddr_info_get() failed for it3246 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Se

如何解决linux下apache启动时httpd: apr_sockaddr_info_get() failed for 报错

今天在家里的RHLE5.5上安装apache的时候,先用user1用户./configure命令配置,然后才用root用户make && make install,结果apache起来的时候就报如下错误: httpd: apr_sockaddr_info_get() failed for bogon httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 fo