标签:bubuko url enable 配置 service start 搭建论坛 star password
LAMP:是指Linux、Apache、Mysql、Php
1.将光盘镜像挂载到/opt
mount /dev/cdrom /opt
2.配置yum源
cd /etc/yum.repos.d
vi local.repo
[redhat]
name=redhat
baseurl=file:///opt
enabled=1
gpgcheck=0
3.关闭防火墙
iptables -F
iptables -Z
iptables -X
service iptables save
setenforce 0
4.安装Apache、mysql、php服务
apache:
yum install -y httpd
yum install -y httpd-devel
systemctl restart httpd 重启http服务
systemctl enable httpd 设置开机自启动
mysql:
yum install -y mariadb-server.x86_64
yum install -y mariadb-devel
systemctl restart mariadb 重启mysql服务
systemctl enable mariadb 设置开机自启动
第一次安装mysql需要设置用户名和密码
mysqladmin -u root password 000000
mysql -u root -p 000000
create database discuz; 创建数据库
grant all on discuz.* to discuz@‘localhost‘ identified by "123456" 设置访问本地的密码
exit 保存,退出
php
yum install -y php
yum install -y php-mysql
5.将Discuz_X3.1_SC_UTF8.zip压缩文件移到/vae/www/html中,进行解压
cp Discuz_X3.1_SC_UTF8.zip /var/www/html
unzip Discuz_X3.1_SC_UTF8.zip
rm -rf Discuz_X3.1_SC_UTF8.zip 删除压缩文件
6.将解压后的upload下的所有文件移到/var/www/html中
前提条件:进入到/var/www/html
mv -f upload/* .
7.修改http文件
cd /etc/httpd
cd conf/
vi httpd.conf
8.修改html文件的权限
cd /var/www/html
chmod -Rf 777 html/
9.在网页输入ip地址,安装discuz
标签:bubuko url enable 配置 service start 搭建论坛 star password
原文地址:https://www.cnblogs.com/L1213/p/9645318.html