LAMP简易安装

2025-04-17 05:57:33

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简易安装
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢