lnmp环境php7.0安装swoole扩展
步骤1
cd /usr/local
wget -c https://pecl.php.net/get/swoole-4.0.3.tgz
2
tar -zxvf swoole-4.0.3.tgz
cd swoole-4.0.3
3
/usr/local/php/bin/phpize
4
./configure --with-php-config=/usr/local/php/bin/php-config
5
make && make install
6
vi /usr/local/php/etc/php.ini
添加extension = swoole.so
7.重启
lnmp restart
或者
/etc/init.d/php-fpm restart
参考以下命令:
PHP-FPM状态管理:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}
Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}
MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理: /etc/init.d/proftpd {start|stop|restart|reload}
Redis状态管理: /etc/init.d/redis {start|stop|restart|kill}
浙公网安备 33010602011771号