Cloud computing tutorial learning course syllabus courseware: Deployment forum system Discuz:
First, the basic environment [Completed]
[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
Second, install the LAMP [Completed]
[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
Third, the installation DIscuz!
- Apache virtual host configuration
[root@apache ~]# vim /etc/httpd/conf.d/yang.conf
[root@apache ~]# systemctl restart httpd
- Import ecshop website source
[root@apache ~]# mkdir -p /webroot/yang
[root@apache ~]# unzip Discuz_X3.2_SC_UTF8.zip
[root@apache ~]# cp -rf upload/* /webroot/yang/
-
Preparing the database
- Installation Discuz! [Any client]
[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 is a web server IP
[root@apache ~]# chmod -R 777 /webroot/yang/