PHP7,Swoole安装
PHP7
1. http://php.net/get/php-7.2.8.tar.bz2/from/a/mirror 下载 Armenia 版本
2.解压 tar -xjvf php-7.2.8.tar.bz2
3.安装gcc
4.安装autocnf
5.安装libxml2
6.安装libxml2-devel
7.安装
./configure –prefix=/home/work/study/soft/php
/home/work/study/soft/php 是你安装的目录,可以不写。
出现下面的这个说明这一步正确。
8.make
出现下面的这个说明这一步正确。
9.make install
10.php -m 查看php的扩展
Swoole安装
Swoole官网下载: https://gitee.com/swoole/swoole/tree/v4.0.3
git clone https://gitee.com/swoole/swoole.git
cd swoole
phpize phpize是用来扩展php扩展模块的,通过phpize可以建立外挂模块
./configure
出现下面的这个说明这一步正确。
make
出现下面的这个说明这一步正确。
make install