PHP的swoole扩展安装方法详细教程(2)

# wget https://github.com/swoole/swoole-src/archive/swoole-1.8.5-stable.tar.gz # tar zxvf swoole-1.8.5-stable.tar.gz # cd swoole-1.8.5-stable # phpize # ./configure # make && make install

然后在php.ini文件添加Swoole扩展:

extension=swoole.so

重启php-fpm:

# service php-fpm restart

然后查看扩展安装情况。如果在列出的扩展中看到了swoole,则说明安装成功:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/09af1218805f2b13f7302c2fd318b899.html