一、配置软件仓库
1、写仓库
cd /etc/yum.repos.d/
vim rpm.repo
rpm.repo仓库文件配置:
[baseos]
name=baseos
baseurl=/mnt/BaseOS
gpgcheck=0
[baseos2]
name=baseos2
baseurl=/mnt/AppStream
gpgcheck=0
二、安装对应文件 httpd php* mariadb*
1、挂载
mount /dev/sr0 /mnt
2、安装软件包
[root@localhost ~]# dnf install httpd php* mariadb mariadb-server
mariadb* 会安装更多的东西,但是也是可以的
三、启动服务 httpd mariadb
1、启动服务
systemctl start httpd
systemctl start mariadb
四、配置数据库
1、配置数据库
mysql -uroot -p
密码默认是没有的
create database luntan;
创建数据库
alter user 'root'@'localhost' identified by 'redhat123';
设置数据库密码为redhat123
五、传源码包,解压
cd /var/www/html/
然后源码包拖进来
解压:
unzip 源码包名
切换到upload目录(因为安装文件在这个目录里面):
cd upload
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
firewall-cmd --list-all
getenforce
setenforce 0
关闭firewall防火墙
systemctl stop firewalld.service
开启firewall防火墙
systemctl start firewalld.service
chmod 777 data/ uc_client / uc_server/ config/ -R
六、web页面初始化
cd..
返回到html目录
rm -rf upload/install/index.php