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.14/install
按照步骤安装完成即可
没有评论:
发表评论