One: Release Forum Discuz:
1. Configure the database:
Mysql-uroot-p123123
mysql> CREATE DATABASE Bbsdb;
Mysql> Grant all on bbsdb.* to ' Runbbs ' @ ' localhost ' identified by ' 123123 ';
mysql> flush Privileges;
Mysql> quit
2. Download Discuz and publish:
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. Access Installation:
http://www.linuxyy.cn/bbs/install/
4. Post-Installation processing:
MV Install/install.lock
chmod install.lock/
Two: Publish WordPress blog system:
1. Configure the database:
mysql> CREATE DATABASE wpdb;
Mysql> Grant all on wpdb.* to ' wpadm ' @ ' localhost ' identified by ' 123123 ';
Mysql> quit
2. Download WordPress, and publish:
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. Visit:
http://www.linuxyy.cn/wordpress/
Three: Download a website and publish it locally:
Wget-c-r-np-k-L http://learnpythonthehardway.org/book/# #下载网站, guaranteed to be networked
MV learnpythonthehardway.org/book//usr/local/httpd/htdocs/linuxyy/book # #发布
Access:
http://www.linuxyy.cn/book/
This article is from the "11628205" blog, please be sure to keep this source http://11638205.blog.51cto.com/11628205/1982187
Publish Forum Discuz, publish WordPress blog system