如何详细在CentOS系统上安装配置PHP7、Nginx和MySQL?
- 内容介绍
- 相关推荐
本文共计4532个文字,预计阅读时间需要19分钟。
以CentOS 6为例,以下为简化后的命令部分:
bashsudo yum install epel-releasesudo yum install httpd php php-mysqlsudo systemctl start httpdsudo systemctl enable httpd
本文以centos6为例。命令部分均省略sudo命令。
安装PHP
下载
cn2.php.net/distributions/php-5.6.22.tar.bz2 cn2.php.net/distributions/php-7.0.7.tar.bz2
更新yum源
这里将Centos的yum源更换为国内的阿里云源。yum安装正常的可以跳过本步骤。
本文共计4532个文字,预计阅读时间需要19分钟。
以CentOS 6为例,以下为简化后的命令部分:
bashsudo yum install epel-releasesudo yum install httpd php php-mysqlsudo systemctl start httpdsudo systemctl enable httpd
本文以centos6为例。命令部分均省略sudo命令。
安装PHP
下载
cn2.php.net/distributions/php-5.6.22.tar.bz2 cn2.php.net/distributions/php-7.0.7.tar.bz2
更新yum源
这里将Centos的yum源更换为国内的阿里云源。yum安装正常的可以跳过本步骤。

