?参考:腾讯云手动实验https://cloud.tencent.com/developer/labs/lab/10030
Discuz 是基于PHP网页,在 Linux 和 windows 两平台均可部署的
论坛工具。
准备LAMP环境
安装MySQL
下载安装repo源
[root@localhost ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[root@localhost ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm
安装
[root@localhost ~]# yum -y install mysql-server
[root@localhost ~]# systemctl start mysqld
[root@localhost ~]# chkconfig mysqld on
设置mysql登录密码
[root@localhost ~]# mysqladmin -uroot password '123.com'
安装Apache组件
[root@localhost ~]# yum -y install httpd
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl enable httpd
安装PHP
[root@localhost ~]# yum install php php-fpm php-mysql -y
[root@localhost ~]# vim /etc/php.ini
short_open_tag = On
[root@localhost ~]# systemctl start php-fpm
[root@localhost ~]# systemctl enable php-fpm
安装配置Discuz
下载Discuz
[root@localhost ~]# wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
解压部署
[root@localhost ~]# unzip Discuz_X3.2_SC_UTF8.zip
[root@localhost ~]# cp -r upload/* /var/www/html/
[root@localhost ~]# chmod -R 777 /var/www/html
[root@localhost ~]# cd /var/www/html/config
[root@localhost config]# cp config_global_default.php config_global.php
[root@localhost config]# cp config_ucenter_default.php config_ucenter.php
[root@localhost ~]# systemctl restart httpd
访问http://192.168.1.10/install
按照步骤安装完成即可
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/101827.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...