PHP系列 | Swoole 编译安装
2021-05-03 02:30
标签:mamicode div file 技术 nss info oschina png ble 1、官方地址:https://wiki.swoole.com/wiki/page/6.html 2、下载地址: 3、下载 4、解压 5、查找phpize 并且执行 6、加载配置 7、编译安装 8、配置php.ini 查找 php.ini 在哪里 编译安装成功后,修改php.ini加入 9、重启php服务 10、查看是否成功加载 通过
PHP系列 | Swoole 编译安装 标签:mamicode div file 技术 nss info oschina png ble 原文地址:https://www.cnblogs.com/tinywan/p/12123589.html
wget https://github.com/swoole/swoole-src/archive/v4.4.14.tar.gz
sudo tar zxvf v4.4.14.tar.gz
sudo find / -name phpize
sudo /usr/local/php-7.2.9/bin/phpize
sudo ./configure --with-php-config=/usr/local/php-7.2.9/bin/php-config --enable-openssl --enable-http2 --enable-sockets --enable-mysqlnd
sudo make clean
sudo make
sudo make install
$ php --ini
Configuration File (php.ini) Path: /usr/local/php-7.2.9/etc
Loaded Configuration File: /usr/local/php-7.2.9/etc/php.ini
extension=swoole.so
sudo systemctl restart php-fpm.service
php -m
或 phpinfo()
来查看是否成功加载了swoole.so