站长资讯网
最全最丰富的资讯网站

怎么配置php运行环境

怎么配置php运行环境

php环境搭建配置步骤:

一、软件及系统版本

怎么配置php运行环境

系统下载地址:

软件包下载地址:http://xiazai.jb51.net/201611/yuanma/php+apache+mysql(jb51.net).rar

二、 下载软件包/换源

(1)下载安装需要软件包软件工具

yum install -y wget vim unzip zip

怎么配置php运行环境

(2)换源

1、首先卸载以前装的 epel 以免影响

rpm -e epel-release

2、清空yum缓存

yum clean all

怎么配置php运行环境

yum makecache

3、rm -rf /etc/yum.repos.d/*(执行此操作的时候记得事先装好wget 不然 你就得挂载光盘用rpm装wget了。)

怎么配置php运行环境

4、下载阿里源

wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repohttp://mirrors.aliyun.com/repo/Centos-6.repo

5、

yum repolist

怎么配置php运行环境

赞(0)
分享到: 更多 (0)
网站地图   沪ICP备18035694号-2    沪公网安备31011702889846号