gpt4 book ai didi

PHP fatal error : require(): unable to unlock pthread lock

转载 作者:可可西里 更新时间:2023-10-31 22:43:42 24 4
gpt4 key购买 nike

我在 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,现在 lamp 工作正常。

最佳答案

修复

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

1 sudo pecl uninstall apc

2 sudo pecl install apc

BUT 将已经为 pthread mutexes 填充的 no 更改为 yes/strong>

AND 将已经为 pthread 读/写锁填写的 yes 更改为 no

关于PHP fatal error : require(): unable to unlock pthread lock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13496165/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com