加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHP致命错误:require():无法解锁pthread锁

发布时间:2020-12-13 16:02:09 所属栏目:PHP教程 来源:网络整理
导读:我在Debian Linux上使用LAMP. Apache 2.2.22-12,PHP 5.4.4. 有时候我收到这个错误,然后我无法重新加载页面或打开的页面,其中包括这个错误的文件.我有这样的错误后,我无法重新启动apache Restarting web server: apache2(98)Address already in use: make_soc
我在Debian Linux上使用LAMP. Apache 2.2.22-12,PHP 5.4.4.

有时候我收到这个错误,然后我无法重新加载页面或打开的页面,其中包括这个错误的文件.我有这样的错误后,我无法重新启动apache

Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available,shutting down

Unable to open logs

Action ‘start’ failed.

The Apache error log may have more information.
failed!

在apache日志文件中:

[Wed Nov 21 15:07:55 2012] [warn] child process 4020 still did not exit,sending a SIGTERM

[Wed Nov 21 15:07:55 2012] [warn] child process 4021 still did not exit,sending a SIGTERM

[Wed Nov 21 15:07:55 2012] [warn] child process 4022 still did not exit,sending a SIGTERM

[Wed Nov 21 15:07:57 2012] [error] child process 1309 still did not exit,sending a SIGKILL

[Wed Nov 21 15:07:57 2012] [error] child process 1310 still did not exit,sending a SIGKILL

[Wed Nov 21 15:07:57 2012] [error] child process 1311 still did not exit,sending a SIGKILL

和主机日志:

[Wed Nov 21 12:21:24 2012] [error] [client 127.0.0.1] PHP Fatal error: require(): unable to unlock pthread lock in ~/www/yii/yii-1.1.11.58da45/framework/base/CApplication.php on line 127

$config=require($config);

要么:

[Wed Nov 14 21:04:26 2012] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to unlock pthread lock in ~/projects/politiya/index.php on line 14

有:

require_once($game_loader);

我已经删除了php-apc,现在灯的效果很好.

固定

如上所述here,我不得不快速卸载并重新安装apc(literaly需要5s):

1 sudo pecl uninstall apc

2 sudo pecl安装apc

但是将pthread互斥体已经填充的no更改为yes

并将已经填充的pthread读/写锁更改为no.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读