CentOS源码安装php

//下载php

wget http://php.net/get/php-7.2.8.tar.gz/from/a/mirror

//解压

tar -zxvf php-7.2.8.tar.gz

//进入目录

cd php-7.2.8

//选择目录,编译安装

./configure --prefix=/usr/local/php

make && make install

 //答错出错数

echo $?

#编译出错

configure: error: xxx not found. Please check your xxx installation.

安装 yum install xxx-devel -y

猜你喜欢

转载自www.cnblogs.com/higreen/p/9403342.html