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
本文为看恩吧原创文章,转载无需和我联系,但请注明来自knsay.com