1. 程式人生 > >發布論壇discuz、發布wordpress博客系統

發布論壇discuz、發布wordpress博客系統

發布論壇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博客系統