停止防火墙
[root@localhost ~]# systemctl stop firewalld
关闭selinux
[root@localhost ~]# setenforce 0
挂载光盘镜像
[root@localhost ~]# mount /dev/sr0 /mnt
Yum配置好
安装php服务
[root@localhost ~]# yum install php* -y
安装httpd服务
[root@localhost ~]# yum install httpd -y
重启httpd服务
[root@localhost ~]# systemctl restart httpd
安装数据库
[root@localhost ~]# yum install mariadb-server -y
启动mariadb
[root@localhost ~]# systemctl start mariadb
查看状态(ctrl+c退出)
[root@localhost ~]# systemctl status mariadb
初始化数据库
[root@localhost ~]# mysql_secure_installation
Set root password? [Y/n] y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] n
Reload privilege tables now? [Y/n] y
登录
明文
[root@l
RHCSA------第十章:综合实验--论坛的搭建
最新推荐文章于 2023-04-17 21:10:20 发布