标签:cli mysq conf 基础 部署 any art 论坛 start
云计算学习路线教程大纲课件:部署论坛系统Discuz:一、基础环境[已完成]
[root@apache ~]# sed -ri ‘/^SELINUX=/cSELINUX=disabled‘ /etc/selinux/config
[root@apache ~]# setenforce 0
[root@apache ~]# systemctl stop firewalld.service
[root@apache ~]# systemctl disable firewalld.service
二、安装LAMP[已完成]
[root@apache ~]# yum -y install httpd mariadb-server mariadb php php-mysql gd php-gd
[root@apache ~]# systemctl start httpd mariadb
[root@apache ~]# systemctl enable httpd mariadb
[root@apache ~]# mysql_secure_installation
三、安装DIscuz!
[root@apache ~]# vim /etc/httpd/conf.d/yang.conf
[root@apache ~]# systemctl restart httpd
[root@apache ~]# mkdir -p /webroot/yang
[root@apache ~]# unzip Discuz_X3.2_SC_UTF8.zip
[root@apache ~]# cp -rf upload/* /webroot/yang/
准备数据库
[root@tianyun ~]# vim /etc/hosts
192.168.122.161 www.zhufo.top zhufo.top www.tianyun.com tianyun.com www.yang.com yang.com //161为 web server IP
[root@apache ~]# chmod -R 777 /webroot/yang/
标签:cli mysq conf 基础 部署 any art 论坛 start
原文地址:https://blog.51cto.com/14489558/2447714