[centos7中yum安装lamp环境搭建]CentOS7中yum安装lamp环境方法图解

更新时间:2019-06-21    来源:nginx    手机版     字体:

【www.bbyears.com--nginx】

CentOS7出来了,第一时间安装体验了一把,感觉不错。

由于nginx还没有CentOS7的源,就安装了个lamp环境试试,过程非常简单:

1、yum安装lamp软件包

yum install httpd php php-gd php-mysql mysql-server

2、启动环境

systemctl start httpd.service
systemctl start mysql.service

3、开机启动

systemctl enable httpd.service
systemctl enable mysql.service

网站根目录默认是/var/www/html,写个phpinfo看看吧。

本文来源:http://www.bbyears.com/caozuoxitong/55183.html