5. 安装Discuz

5.1 下载Discuz安装包

wget http://101.44.1.3/files/112000000589504D/123.138.60.34/files/A120000000C21706/download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

5.2 解压上传文件到htdoc目录下

yum install unzip -y

[root@localhost upload]# cp -R * /usr/local/httpd/htdocs/discuz/

5.3 网页访问:http://192.168.42.130/discuz/install/

安装向导

目录权限

[root@localhost discuz]# ps -ef | grep httpdroot      49902      1  0 07:30 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119266  49902  0 07:55 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119267  49902  0 07:55 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119268  49902  0 07:55 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119269  49902  0 07:55 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119270  49902  0 07:55 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119271  49902  0 07:55 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119312  49902  0 08:01 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
daemon   119313  49902  0 08:01 ?        00:00:00 /usr/local/httpd/bin/httpd -k start
[root@localhost htdocs]# chown -R daemon:daemon discuz/
或 chown -R daemon:daemon data uc_server/data uc_client/data config

正确权限配置

安装数据库

初始化数据库

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.0.90' IDENTIFIED BY 'mysql' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

进入论坛首页