

添加swoole扩展的一个报错处理
source link: https://wiki.eryajf.net/pages/688d60/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

安装swoole扩展步骤如下:
# 1,下载包。
$ wget https://pecl.php.net/get/swoole-4.3.6.tgz
# 2,编译。
tar xf swoole-4.3.6.tgz
cd swoole-4.3.6
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config && make && make install
# 3,添加扩展。
cat >> /usr/local/php/etc/php.ini << EOF
extension=swoole.so
EOF
# 4,重启验证。
$ systemctl restart php-fpm
$php -m |grep swoole
swoole
可能报错:
(/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so (libhiredis.so.0.13: cannot open shared object file: No such file or directory)) in Unknown on line 0
需要添加hiredis模块儿:
$ wget https://rpms.remirepo.net/enterprise/7/remi/x86_64/hiredis-last-0.13.3-1.el7.remi.x86_64.rpm
$ yum localinstall -y hiredis-last-0.13.3-1.el7.remi.x86_64.rpm
$ cd /usr/lib64/
$ ln -snf libhiredis.so.0.13 libhiredis.so
然后重启PHP,再验证就不会报那个错误了。
Recommend
-
95
间隔了一段时间未往gitlab上push文件,近期使用时,发现push时报错,这里记录下解决处理的方法。 错误一: [root@361way shell]# git push warning: push.default is unset; its implicit value is changing...
-
57
在启动VMware虚拟机的时候遇见的报错,在一路的报错上不停地折腾,最终总结自己的失败经验,也写下成功的办法,这样就能帮助更多人了。越折腾,越幸运。
-
70
-
14
问题一:[root@cdeba90ec46e~]#./configure--prefix=/usr/local/nginx--user=www--group=www--with-http_stub_status_modulebash:./configure:Nosuchfileordirectory//解决思路:表示在执行预编译./configure没有找到configure执行文件,改文件不存在
-
13
ELK-学习笔记–filebeat报错too many open files处理 |坐而言不如起而行! 二丫讲梵 > 迎刃而解 > <十七>ELK-学习笔记–filebeat报错too many open files处理
-
14
macOS 下 MongoDB 连接报错排查过程及处理0 Comments在 macOS 下使用 Homebrew 安装 MongoDB。但在 Homebrew 的核心库中...
-
5
解决 Swoole 服务报错 Too many open files 文件句柄超出系统限制
-
29
添加knife4j配置后项目启动报错 - OSCHINA - 中文开源技术交流社区 开源问答...
-
8
1)海外设备上偶现的报错处理方式 2)Shader冗余则ShaderLab占用大小问题 3)URP Renderer Feature实现二次元描边,Cutout的处理问题 4)Unity中视频播放的解决方案 这是第286篇UWA技术知识分享的推送。今天我们继续为大家精...
-
8
已添加逗号还是报错 disjut · 大约7小时之前 · 126 次点击 · 预计阅...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK