《云计算》

编程入门 行业动态 更新时间:2024-10-09 21:18:53

《云计算》

《云计算》

环境准备:

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即可
  • 论坛就安装好了
  • 如果遇到报错,这边建议你删了重装一遍呢亲。

更多推荐

《云计算》

本文发布于:2024-03-15 02:19:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1737896.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!