当前位置:首页 > 操作系统 > Linux

本地linux下安装discuz

[root@Levan www]#mkdir /data/wwww

[root@Levan www]#cd /data/wwww

[root@Levan www]#wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip

[root@Levan www]# ls

Discuz_X3.2_SC_GBK.zip  readme  upload  utility

[root@Levan www]# mv upload/* ./

[root@Levan www]# ls

admin.php    crossdomain.xml         index.php   robots.txt  upload

api          data                    install     search.php  userapp.php

api.php      Discuz_X3.2_SC_GBK.zip  member.php  source      utility

archiver     favicon.ico             misc.php    static

config       forum.php               plugin.php  template

connect.php  group.php               portal.php  uc_client

cp.php       home.php                readme      uc_server

[root@Levan www]# rm -rf readme/ unility/ Discuz_X3.2_SC_GBK.zip

[root@Levan www]# ls

admin.php  connect.php      forum.php  member.php  search.php  uc_server

api        cp.php           group.php  misc.php    source      upload

api.php    crossdomain.xml  home.php   plugin.php  static      userapp.php

archiver   data             index.php  portal.php  template    utility

config     favicon.ico      install    robots.txt  uc_client

[root@Levan www]# vim /usr/local/apache2/conf/httpd.conf

[root@Levan www]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf

技术分享650) this.width=650;" src="/upload/getfiles/default/2022/11/11/20221111041018327.jpg" title="360截图-10295582.jpg" />

[root@Levan www]# vim /etc/hosts

技术分享650) this.width=650;" src="/upload/getfiles/default/2022/11/11/20221111041018705.jpg" title="666.png" />

[root@Levan www]# ping www.baidu.com

[root@Levan www]# /usr/local/apache2/bin/apachectl start

[root@Levan www]# vim /usr/local/apache2/conf/httpd.conf

技术分享650) this.width=650;" src="/upload/getfiles/default/2022/11/11/20221111041018986.jpg" title="2.png" />

[root@Levan www]# chown -R daemon config data uc_client/data uc_server/data

[root@Levan www]# /usr/local/mysql/bin/mysql

Welcome to the MySQL monitor.  Commands end with ; or g.

Your MySQL connection id is 2

Server version: 5.1.73-log MySQL Community Server (GPL)


Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type ‘help;‘ or ‘h‘ for help. Type ‘c‘ to clear the current input statement.


mysql> create database discuz;

Query OK, 1 row affected (0.00 sec)


mysql> grant all on discuz.* to ‘levan‘@‘localhost‘ identified by ‘levanlinux‘;

Query OK, 0 rows affected (0.00 sec)


原文:http://vanjle.blog.51cto.com/9794584/1751032


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐