手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

LAMP简易安装

时间:2024-10-13 20:09:57

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仓库的检查

LAMP简易安装

4、yum安装LAMP[root@localhost ~]# yum -y install httpd mysql mysql-server mysql-devel php*

LAMP简易安装

5、apache初始化

LAMP简易安装

6、mysql初始化

LAMP简易安装
LAMP简易安装

7、查看经常mysql和httpd是否运行:

LAMP简易安装
LAMP简易安装

8、防火墙的相关设置

LAMP简易安装
LAMP简易安装

9、测试httpd的静态文件

LAMP简易安装
© 手抄报圈