实现 Discuz!应用部署
范例:CentOS 8 利用RPM包部署Discuz!
[root@centos8 ~]#dnf -y install httpd php php-xml php-mysqlnd mariadb-server
[root@centos8 ~]#unzip Discuz_X3.4_SC_UTF8【20191201】.zip
[root@centos8 ~]#mv upload/ /var/www/html/forum
[root@centos8 ~]#chown -R apache.apache /var/www/html/forum
[root@centos8 ~]#mysql
MariaDB [ultrax]> create database ultrax;
MariaDB [ultrax]> grant all on ultrax.* to ultrax@'localhost' identified by 'magedu';
范例:CentOS 7 利用RPM包部署Discuz!
#官网:http://www.discuz.net
#下载源码:
wget http://download.comsenz.com/DiscuzX/3.3/Discuz_X3.3_SC_UTF8.zip
unzip Discuz_X3.3_SC_UTF8.zip
mv upload/ /var/www/html/forum
setfacl -R -m u:apache:rwx /var/www/html/forum
mysql>create database discuz;
mysql>grant all on discuz.* to discuz@'172.16.0.%’identified by"magedu";
安装向导:http://localhost/forum
本文链接:http://www.yunweipai.com/36070.html
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/52441.html