centos6.9安装php7.1.18

2018-07-19  本文已影响0人  敦敦实实

1、安装源

yum install epel-release
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

2、安装

yum install php71w php71w-mysql php71w-odbc php71w-common php71w-embedded php71w-pgsql php71w-xml  php71w-ldap php71w-fpm php71w-gd php71w-pdo php71w-devel php71w-mbstring php71w-mcrypt php71w-cli php71w-json php71w-imap php71w-bcmath mod_php71w php71w-pear

3、启动php服务(启动后才能与nginx等服务连同)

service php-fpm start

4、关闭php服务

netstat -lnt | grep 9000
上一篇 下一篇

猜你喜欢

热点阅读