centos7.9 安装swoole

1.安装webtatic源

yum install epel-release -y
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm


2.先装一下依赖

yum install -y gcc gcc-c++ cmake autoconf openssl openssl-devel pcre-devel curl-devel


2.php7

yum search php7

yum install -y php72w php72w-devel php72w-pear php72w-mysqlnd php72w-mbstring

pecl install igbinary redis swoole


3.composer

php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"

php composer-setup.php

chmod 777 composer.pear

mv composer.pear /usr/bin/composer


4. tp

composer create-project topthink/think tp

composer require topthink/think-swoole


5.

php think swoole


6.

setenforce 0
systemctl stop firewalld.service


打赏

看恩吧
网站不承担任何有关评论的责任
  • 最新评论
  • 总共条评论
取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦