这篇文章介绍的内容是关于centos 7 下安装php 7 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
1 安装nginx
yum install nginx
2 安装epel源
yum install epel-release wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm && rpm -Uvh remi-release-7.rpm
3 安装php
yum --enablerepo=remi-safe -y install php71
4 安装依赖
立即学习“PHP免费学习笔记(深入)”;
yum install php71-php-mcrypt php71-php-mcrypt php71-php-json php71-php-mbstring php71-php-xml php71-php-soap php71-php-xmlrpc php71-php-simplexml php71-php-curl php71-php-mysqlnd
5 安装php-fpm
yum --enablerepo=remi-safe -y install php71-php-fpm
6 设置开机启动
systemctl start php71-php-fpm systemctl status php71-php-fpm.service systemctl enable php71-php-fpm
7 配置文件
/etc/opt/remi/php71/
/etc/opt/remi/php71/php-fpm.d/www.conf
相关推荐:
以上就是centos 7 下安装php 7 的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号