一、添加yum源
[root@localhost tmp]# rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
[root@localhost tmp]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
二、安装依赖
[root@localhost tmp]# yum install -y libssh2-devel openssl openssl-devel mysql-community-client python python-devel python-pip
三、安装php
[root@localhost tmp]# yum --enablerepo=webtatic install -y php72w php72w-devel php72w-opcache php72w-mbstring php72w-mysqlnd php72w-fpm php72w-xml php72w-gd php72w-xmlrpc php72w-pecl-redis php72w-pecl-apcu php72w-bcmath php72w-pecl-igbinary php72w-pecl-memcache php72w-soap php72w-pear php72w-pecl-xdebug php72w-pecl-mongodb
四、管理
[root@localhost tmp]# systemctl start php-fpm
[root@localhost tmp]# systemctl status php-fpm
[root@localhost tmp]# systemctl enable php-fpm
留言