基于以下环境已经安装ok:
centos:7.2
Nginx:1.12.2
PHP:7.1.10
echo -e '\nexport PATH=/usr/local/PHP/bin:/usr/local/PHP/sbin:$PATH\n' >> /etc/profile && source /etc/profile
拷贝PHP7.1.10源码目录下相应配置文件到PHP安装的etc目录下:
$cd /usr/local/PHP/etc/ $cp PHP.ini-production PHP.ini $cp PHP-fpm.conf.default PHP-fpm.conf $cp PHP-fpm.d/www.conf.default PHP-fpm.d/www.conf $ls pear.conf PHP-fpm.conf PHP-fpm.conf.default PHP-fpm.d PHP.ini原文链接:https://www.f2er.com/centos/375153.html