《云计算》-基于LAMP论坛的搭建

环境准备:

1.Centos7版本
2.Discuz_X3.2安装包
3.本地yum配置
4.关闭selinux
5.关闭防火墙

  • 本地yum源配置
#mkdir   /dvd
#mount  /dev/cd/rom
#vim  /etc/yum.repos.d/dvd.repo
[name]
name=centos
baseurl=file:///dvd
gpgcheck=0
enable=1
#yum  repolist 
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识                               源名称                                状态
name                                 centos                                9,007
repolist: 9,007
  • 关闭防火墙 关闭selinux
[root@localhost 桌面]# cat  /etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled

[root@localhost 桌面]# systemctl stop  firewalld.service 

  • selinux关闭之后记得重启

  • 安装LAMP的环境包。

# yum  -y install httpd  mariadb  mariadb-server  mariadb-devel php php-mysql
#  systemctl restart httpd  
#  systemctl restart mariadb
#  systemctl enable mariadb
#  systemctl enable  httpd 

  • 配置数据库
#mysqladmin  -u root password "123456"
#mysql  -uroot  -p123456
>create  database  luntan;
>grant all  on  *.*  to  root@"%"  identified  by "123456";
>quit

  • 解压论坛的包,之后配置upload目录
# cp  upload  /var/www/html
#chmod  -R 777  /var/www/html/*
#systemctl  restart   httpd
  • 浏览器访问http://127.0.0.1/upload/install
  • 按照提示下一步即可
  • 数据库一页输入root的密码123456即可
  • 论坛就安装好了
  • 如果遇到报错,这边建议你删了重装一遍呢亲。

猜你喜欢

转载自blog.csdn.net/xie_qi_chao/article/details/88823304
今日推荐