Centos7.7安装swoole

系统版本:centos 7.7(查看系统版本:cat /etc/redhat-release)

执行命令安装swoole:

  1. yum update -y && yum remove php* -y
  2. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  3. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  4. yum install -y php72w-cli php72w-common php72w-pear php72w-devel php72w-pecl-redis httpd gcc gcc-c++ make autoconf pcre openssl-devel
  5. pecl install swoole
  6. 新建/etc/php.d/swoole.ini,内容为extension=swoole.so

查看swoole信息:php --ri swoole

posted on 2019-11-19 21:25  果然朝辉  阅读(553)  评论(0编辑  收藏  举报

导航