Wordpress
Wordpress是一個開源的部落格平台,是搭建個人部落格的首選,使用者可以去wordpress中文網站尋找幫助資料
1、下載下傳wordpress軟體(https://cn.wordpress.org/download/releases/)
2、為wordpress建立一個自己的資料庫,我們起名為“wordpress”
3、将wordpress安裝包解壓到apache的網頁根目錄“/var/www/html/”
[root@localhost html]# cp /wj/wordpress-4.1.tar /var/www/html/ //拷貝壓縮包
[root@localhost html]# tar –xvf wordpress-4.1.tar //解壓
[root@localhost html]# mv wordpress-4.1 wordpress //重指令,這樣友善從浏覽器打開
4、修改wordpress配置檔案。Wordpress提供了一個樣闆檔案“wp-config-sample.php”,我們要将其拷貝一份,命名為“wp-config.php”
[root@localhost wordpress]# cp wp-config-sample.php wp-config.php
[root@localhost wordpress]# gedit wp-config.php
/** WordPress資料庫的名稱 */
define('DB_NAME', 'wordpress');
/** MySQL資料庫使用者名 */
define('DB_USER', 'root');
/** MySQL資料庫密碼 */
define('DB_PASSWORD', '543092');
/** MySQL主機 */
define('DB_HOST', 'localhost');
/** 建立資料表時預設的文字編碼 */
define('DB_CHARSET', 'utf8');
/** 資料庫整理類型。如不确定請勿更改 */
define('DB_COLLATE', 'utf8_unicode_ci');
/** 資料庫語言設定*/
define('WPLANG', 'zh_CN');
5、重新開機apache
[root@localhost wordpress]# service httpd restart
停止 httpd: [确定]
正在啟動 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[确定]
6、安裝。在浏覽器輸入位址“127.0.0.1/wordpress”,開始安裝
1)輸入基本資訊

2)安裝成功
3)登入。可以使用開始填寫的使用者名和密碼登入,位址是“127.0.0.1/wordpress/wp-login.php”
4)管理界面”127.0.0.1/wordpress/wp-admin”
5)首頁“127.0.0.1/wordpress”