# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
# sudo yum -y install php72w
# yum -y install php72w-cli php72w-common php72w-devel
# yum install yum-utils –y
# yum install php-mysqli
# yum install php72w-fpm
1.使用“systemctl”命令设定开机自动启动。
# systemctl enable php-fpm.service
2.接下来“systemctl start php-fpm.service”命令启动php-fpm。
# systemctl start php-fpm.service
原文:https://www.cnblogs.com/michaelcnblogs/p/11330780.html