Cloud Computing Learning Route course syllabus Courseware: deploying Forum system Discuz
Cloud Computing Learning Route course outline Courseware: deploy Forum system Discuz:
I. 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
2. Installation of 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, install DIscuz!
Apache configure virtual host
[root@apache ~] # vim / etc/httpd/conf.d/yang.conf
[root@apache ~] # systemctl restart httpd
Import ecshop website source code
[root@apache] # mkdir-p / webroot/yang
[root@apache ~] # unzip Discuz_X3.2_SC_UTF8.zip
[root@apache ~] # cp-rf upload/* / webroot/yang/
Prepare the database
Install 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 web server IP
[root@apache] # chmod-R 777 / webroot/yang/