一、实验环境:
准备一台cos7系统的虚拟机
二、实验要求:物理机和虚拟机要能相互通信
三、实验步骤:
1)安装LAMP平台各组件
— 安装好软件httpd、mariadb-server、mariadb、php、php-mysql
yum -y install httpd mariadb-server mariadb php php-mysql
— 确认安装结果
yum list httpd mariadb-server mariadb php php-mysql
2)启用LAMP网站平台
— 开启系统服务httpd、mariadb,将上述服务设置为开机自运行
systemctl restart httpd mariadb //起服务
systemctl enable httpd mariad //设置开机自启
— 关闭防火墙服务、关闭SELinux保护机制
# systemctl stop firewalld //立即关闭
# systemctl disable firewalld //永久关闭
# setenforce 0 //使SELinux失效
# vim /etc/selinux/config //开机时禁用
SELINUX=disabled
3)测试PHP网页解析
— 编写网