解决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。谢谢观看!
目录
相关文章
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
188 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
|
Ruby
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.错误解决办法
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.错误解决办法
2615 0
wamp You don't have permission to access / on this server等问题的解决.
原文: wamp You don't have permission to access / on this server等问题的解决. 安装完wamp之后,安装网上的教程设置虚拟路径,出现了问题,同样的问题由不同的原因导致。
1139 0
|
存储 安全 数据库
chmod() has been disabled for security reasons
最近用 codeigniter 写一个小系统,引用了session 库,codeigniter默认的session存储方式为files。鉴于安全性,文件即肯定涉及到权限问题。 在类 UNIX 操作系统中,这可以通过在该目录上执行 chmod 命令,将权限设置为 0700 来实现, 这样就可以只允许目录的所有者执行读取和写入操作。
1267 0
|
安全 关系型数据库 Unix
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).
2891 0
wamp You don't have permission to access / on this server等问题的解决.
原文: wamp You don't have permission to access / on this server等问题的解决. 安装完wamp之后,安装网上的教程设置虚拟路径,出现了问题,同样的问题由不同的原因导致。
1308 0
Finding Local Admin with the Veil-Framework
http://www.harmj0y.net/blog/penetesting/finding-local-admin-with-the-veil-framework/ ...
645 0