一:发布论坛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
原文地址:http://11638205.blog.51cto.com/11628205/1982187