swoole安装(centos7)

  1. swool安装(centos7)

swool安装(centos7)

1:获取swoole

https://github.com/swoole/swoole-src/releases
http://pecl.php.net/package/swoole
http://git.oschina.net/swoole/swoole
2:解包并用phpize编译扩展
/usr/local/webserver/php7/bin/phpize

红色字体部分是你的php安装路径

3:编译

/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config
+++++++++++++++++++++++++
ubuntu 16.04

phpize7.1
./configure –with-php-config=/usr/bin/php-config7.1

++++++++++++++++++++++

./configure –with-php-config=/usr/local/webserver/php7/bin/php-config(例子)

红色字体部分为你的php安装路径

4:安装

make && make install

5:打开php.ini增加swoole扩展

extension=swoole.so


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以邮件至 chaofa_vip@126.com

文章标题:swoole安装(centos7)

文章字数:133

本文作者:Hechaofa

发布时间:2017-03-02, 09:13:47

最后更新:2019-12-22, 23:50:31

原始链接:https://chaofavip.github.io/2017/03/02/linux/swoole_set/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏