标签:yum 编译 ext mon release openssl安装 lease evel nbsp
1、替换YUM源
yum -y install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
2、php7.2安装
yum -y install php72w
3、安装扩展
yum -y install php72w-cli php72w-fpm php72w-common
安装成功可通过 “php -v ”查看是否安装成功
4、安装pecl
yum -y install php72w-devel
yum -y install php72w-pear
5、安装swoole(确认gcc编译器已安装,如果没有运行 yum install gcc*)
pecl install swoole
6、加入PHP扩展
vim /etc/php.ini
最后面添加 extension=swoole.so
通过 php -m 可查看是否安装成功
7、安装中出现的问题,解决方案
https://wiki.swoole.com/wiki/page/1013.html
openssl安装:
yum install openssl
yum install openssl-devel
contos7 yum安装php7.2与swoole (2)
标签:yum 编译 ext mon release openssl安装 lease evel nbsp
原文地址:https://www.cnblogs.com/benpaodegegen/p/12273284.html