workerman安装——php拓展的安装
来源:互联网 发布:周继红 田亮 知乎 编辑:程序博客网 时间:2024/06/06 03:51
要求:使用Linux版本的Workerman。
1、安装PHP>=5.3.3,并安装了pcntl、posix扩展
2、建议安装event或者libevent扩展,但不是必须的(注意event扩展需要PHP>=5.4)
Linux环境检查脚本
Linux用户可以运行以下脚本检查本地环境是否满足WorkerMan要求
curl -Ss http://www.workerman.net/check.php | php
如果脚本中全部提示ok,则代表满足WorkerMan运行环境
(注意:检测脚本中没有检测event扩展或者libevent扩展,如果并发连接数大于1024建议安装event扩展或者libevent扩展)
开始配置:
php -m 查看拓展,并没有posixposix 。
开始安装~
[root@VM_249_99_centos /]
# yum install php-process
Loaded plugins: fastestmirror, langpacks
Repository epel is listed
more
than once
in
the configuration
Loading mirror speeds from cached hostfile
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-process.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-42.el7
for
package: php-process-5.4.16-42.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit)
for
package: php-common-5.4.16-42.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php56w-common-5.6.31-1.w7.x86_64 conflicts php-common < 5.6
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.31-1.w7 will be updated
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-ldap-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-mbstring-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-gd-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-mcrypt-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-fpm-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-pdo-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-5.6.31-1.w7.x86_64
--> Processing Dependency: php56w-common(x86-64) = 5.6.31-1.w7
for
package: php56w-cli-5.6.31-1.w7.x86_64
---> Package php56w-common.x86_64 0:5.6.31-2.w7 will be an update
--> Running transaction check
---> Package php56w.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w.x86_64 0:5.6.31-2.w7 will be an update
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
for
package: php56w-5.6.31-2.w7.x86_64
---> Package php56w-cli.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-cli.x86_64 0:5.6.31-2.w7 will be an update
---> Package php56w-fpm.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-fpm.x86_64 0:5.6.31-2.w7 will be an update
---> Package php56w-gd.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-gd.x86_64 0:5.6.31-2.w7 will be an update
---> Package php56w-ldap.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-ldap.x86_64 0:5.6.31-2.w7 will be an update
---> Package php56w-mbstring.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-mbstring.x86_64 0:5.6.31-2.w7 will be an update
---> Package php56w-mcrypt.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-mcrypt.x86_64 0:5.6.31-2.w7 will be an update
---> Package php56w-pdo.x86_64 0:5.6.31-1.w7 will be updated
---> Package php56w-pdo.x86_64 0:5.6.31-2.w7 will be an update
--> Running transaction check
---> Package openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-60.el7_3.1
for
package: 1:openssl-1.0.1e-60.el7_3.1.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-8.el7 will be an update
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-60.el7_3.1 will be updated
---> Package openssl.x86_64 1:1.0.2k-8.el7 will be an update
--> Processing Conflict: php56w-common-5.6.31-2.w7.x86_64 conflicts php-common < 5.6
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.4.16-42.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
重点看倒数第三行报错Error, 显示冲突了,原因是之前php5.4升级5.6 可能残留的包冲突了??(不是很确定,因为查了下php安装包没有phpw54的包)
解决方法:
[root@VM_249_99_centos /]# yum search php56w-process
其中有:php56w-process.x86_64 : Modules for PHP script using system process interfaces #之前安装的是php-process....
[root@VM_249_99_centos /]# yum install php56-process.x86_64
选择y,提示成功Complete!
[root@VM_249_99_centos /]# php -m|grep posix
posix
安装成功
待续。。。
- workerman安装——php拓展的安装
- WorkerMan的安装学习
- workerman-chat的安装方法
- CentOS7.2 安装php 7.1+workerman+MariaDB
- php zookeeper拓展安装
- php pctnl拓展安装
- PHP拓展安装
- php 编译安装拓展
- php 安装mongodb拓展
- 安装php拓展
- Win下安装PHP的APC拓展
- 编译,安装php拓展的一般步骤
- php 拓展模块相关的安装
- tp5安装workerman
- workerman安装流程
- workerman-chat linux安装
- linux下memcached的安装、php-memcached拓展安装
- ubuntu安装php-curl拓展
- 7-8 直捣黄龙(30 分)
- android通讯录开发<三> 增删改查(附Demo)
- 欢迎使用CSDN-markdown编辑器
- 【Tips】Javascript中多重数字数组扁平化处理
- [codevs2547]东方辉针城
- workerman安装——php拓展的安装
- uploadify的JS组件报错:Uncaught TypeError: Cannot read property 'queueData' of undefined
- IE8下table th和td宽度样式混乱解决办法
- Newton版cinder僵尸卷处理
- shell 常用命令
- Audials One 2017(音乐搜索播放软件)官方注册版V2017.1.86.8500下载 | 含audials one注册码
- CentOS 7 离线安装Java Web服务器环境(JRE8+Tomcat8+MySQL5.6)
- makefile中“=”和“:=”的区别
- 《Java7编程高级进阶》(一)