十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
php-7.1.5安装教程
创新互联公司专业为企业提供周村网站建设、周村做网站、周村网站设计、周村网站制作等企业网站建设、网页设计与制作、周村企业网站模板建站服务,十多年周村做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。1.下载源码
2.解压
3.编译
4.配置
5.启动
wget http://cn2.php.net/distributions/php-7.1.11.tar.gz
tar -zxvf php-7.1.11.tar.gz
#进入目录cd php-7.1.5/#写入配置文件./configure \--prefix=/usr/local/php \--with-curl \--with-freetype-dir \--with-gd \--with-gettext \--with-iconv-dir \--with-kerberos \--with-libdir=lib64 \--with-libxml-dir \--with-mysqli \--with-openssl \--with-pcre-regex \--with-pdo-mysql \--with-pdo-sqlite \--with-pear \--with-png-dir \--with-xmlrpc \--with-xsl \--with-zlib \--enable-fpm \--enable-bcmath \--enable-libxml \--enable-inline-optimization \--enable-gd-native-ttf \--enable-mbregex \--enable-mbstring \--enable-opcache \--enable-pcntl \--enable-shmop \--enable-soap \--enable-sockets \--enable-sysvsem \--enable-xml \--enable-zip
先结束所有的php进程
扩展延伸”结束所有PHP进程”的bash脚本
#!/bin/bashphp=`ps -ef | grep php-fpm | grep -v grep | awk '{print $2}'>phppid.ini`if [ "$php" == "" ];then while read line do kill -9 $line done < phppid.inifi
然后执行
cp -R ./sapi/fpm/php-fpm /etc/init.d/php-fpm
/etc/init.d/php-fpm
开机启动:
vim /etc/rc.local
新增一行,写入/etc/init.d/php-fpm>dev/null 2>&1