发布论坛discuz发布wordpress博客系统

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了发布论坛discuz发布wordpress博客系统相关的知识,希望对你有一定的参考价值。

一:发布论坛discuz:

1.配置数据库:

mysql -uroot -p123123

mysql> create database bbsdb; 

mysql> grant all on bbsdb.* to ‘runbbs‘@‘localhost‘ identified by ‘123123‘;

mysql> flush privileges; 

mysql> quit

2.下载discuz并发布:

lftp 192.168.100.100

lftp 192.168.100.100:~> cd tools/

lftp 192.168.100.100:/tools> get discuz_7.2_full_sc_utf8.zip 

4704761 bytes transferred                                        

lftp 192.168.100.100:/tools> bye

unzip discuz_7.2_full_sc_utf8.zip -d discuz  ##解压

cp discuz/upload/ /usr/local/httpd/htdocs/linuxyy/bbs -rf


cd /usr/local/httpd/htdocs/linuxyy/bbs/


chown daemon forumdata/ attachments/ uc_client/data/cache/ templates/ config.inc.php -R


3.访问安装:

http://www.linuxyy.cn/bbs/install/


4.安装完成后的处理:

mv install/ install.lock

chmod 600 install.lock/


二:发布wordpress博客系统:

1.配置数据库:

mysql> create database wpdb;

mysql> grant all on wpdb.* to ‘wpadm‘@‘localhost‘ identified by ‘123123‘;

mysql> quit

2.下载wordpress,并发布:

wget https://cn.wordpress.org/wordpress-4.4.1-zh_CN.zip

unzip wordpress-4.4.1-zh_CN.zip

cp wordpress /usr/local/httpd/htdocs/linuxyy/ -rf

cd /usr/local/httpd/htdocs/linuxyy/wordpress/

cp wp-config-sample.php wp-config.php

##修改配置文件可以使用vim wp-config.php

sed -i ‘s/database_name_here/wpdb/g‘ wp-config.php

sed -i ‘s/username_here/wpadm/g‘ wp-config.php

sed -i ‘s/password_here/123123/g‘ wp-config.php

3.访问:

http://www.linuxyy.cn/wordpress/


三:下载一个网站并发布到本地:

wget -c -r -np -k -L http://learnpythonthehardway.org/book/  ##下载网站,保证能联网

mv learnpythonthehardway.org/book/  /usr/local/httpd/htdocs/linuxyy/book  ##发布

访问:

http://www.linuxyy.cn/book/




本文出自 “11628205” 博客,请务必保留此出处http://11638205.blog.51cto.com/11628205/1982187

以上是关于发布论坛discuz发布wordpress博客系统的主要内容,如果未能解决你的问题,请参考以下文章

在CentOS 6.7部署wordpress博客系统Discuz论坛系统

在httpd-2.2和http-2.4中分别搭建wordpress博客系统和Discuz!论坛系统

httpd-2.2部署Discuz!论坛系统wordpress博客系统和phpMyAdmin程序

httpd-2.4部署Discuz!论坛系统wordpress博客系统和phpMyAdmin程序

CentOS 7中的httpd-2.4和CentOS 6中的httpd-2.2搭建wordpress博客系统和Discuz!论坛系统

LAMP-搭建WordPress个人博客Discuz论坛