前提是CentOS 7已经装好了LAMP,请参考2019-02-04 CentOS 安装LAMP
1、下载文件,从http://www.comsenz.com/downloads/install/discuzx 根据情况选择版本下载,我下载的是简体utf-8
下载完了解压zip文件,或者把解压出来后的“readme upload utility”三个目录中的upload目录上传到 /var/www/html目录下。
sudo cp -r upload/* /var/www/html/
2、修改目录权限777
sudo chmod -R 777 /var/www/html
3、数据库设置,登录你前面安装好的数据库
[axing@syslog-http ~]$ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 63
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
创建一个数据库,名称随意,我就创建了一个叫ax3的数据库
MariaDB [(none)]> create database ax3;
# 创建mysql账号,赋权ax3数据库
MariaDB [(none)]> grant all on ax3.* to mysql@'localhost' identified by 'password';
4、访问Http://<域名/IP地址>/install/, 根据提示一步步开启Dicuz安装之旅吧,这个图文攻略在主站www.comsenz.com上说的很清楚了,就不重复了。
_