解决pcntl_fork() has been disabled for security reasons in file /www/wwwroot/192.168.21.2/vendor/wor

简介: 解决pcntl_fork() has been disabled for security reasons in file /www/wwwroot/192.168.21.2/vendor/wor

学习wokerman的时候遇到了一个问题,如下图所示

启动不了,然后就各种寻找解决办法。后来知道是由于PHP配置的缘故,修改php.ini将disable_functions这个里面的以pcntl开头开头的函数都去掉,然后保存,接着重新启动就好了。
下图是启动成功的提示。

然后我们在测试服务搭建成功的网站测试一下

测试websoket

如上图所示,我们websoket就搭建成功了。这里我们用的是workerman。谢谢观看!
目录
打赏
0
0
0
0
52
分享
相关文章
PHP cURL 'safe mode' Security Bypass Vulnerability
The following proof-of-concept PHP code is available:var_dump(curl_exec(curl_init("file://safe_mode_bypass/x00".
836 0
|
10月前
|
phpMyAdmin报错 in ./libraries/config/FormDisplay.php#661 continue targeting switch is equivalent to
phpMyAdmin报错 in ./libraries/config/FormDisplay.php#661 continue targeting switch is equivalent to
69 0
Please read “Security” section of the manual to find out how to run mysqld as root!错误解决(转)
2016-03-12T15:40:45.717762Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2950 0
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
请求页面时候报错 file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known , 找了很久都说是找不到DNS服务器,要修改apache配置之类的,最后加上一句set_time_limit(0);就好了。
3206 0
WebDAV Server to Download Custom Executable or MSF Generated Executables
The current module does not allow you to download exe's, in fact these are specifically blacklisted.
968 0

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等