1、[root@localhost ~]# uname -a Linux localhost.localdomain 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux[root@localhost ~]# cat /etc/redhat-release CentOS release 6.8 (Final)[root@localhost ~]#
2、默认httpd已经安装,在这里我们说明下:本次实验我们采用的是yum的方式来进行安装,httpd就是Apache软件在RPM中的软件包名[root@localhost ~]# rpm -qa httpdhttpd-2.2.15-53.el6.centos.x86_64[root@localhost ~]# rpm -qa mysql*[root@localhost ~]# rpm -qa php*[root@localhost ~]#
3、yum仓库的检查
4、yum安装LAMP[root@localhost ~]# yum -y install httpd mysql mysql-server mysql-devel php*
5、apache初始化
6、mysql初始化
7、查看经常mysql和httpd是否运行:
8、防火墙的相关设置
9、测试httpd的静态文件