查看系統環境php
#lsb_release -a LSB Version::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID:CentOS Description:CentOS release 6.5 (Final) Release:6.5 Codename:Final #uname -r 2.6.32-431.el6.x86_64 #python -V Python 2.6.6
關閉防火牆和SELinuxhtml
#/etc/init.d/iptables stop #setenforce 0
一、YUM安裝LAMP架構python
#yum install httpd httpd-devel mysql-server mysql-devel mysql-libs mysql php php-devel php-mysql
二、下載wordpress網站源碼mysql
#wget https://cn.wordpress.org/wordpress-4.5.3-zh_CN.tar.gz
三、複製wordpress網站源碼到網站發佈目錄sql
#tar xf wordpress-4.5.3-zh_CN.tar.gz #cd wordpress #cp -arf * /var/www/html/ #/etc/init.d/httpd restart
四、建立數據庫及受權用戶數據庫
#mysql mysql> create database wordpress; mysql> grant all on wordpress.* to 'wps'@'localhost' identified by 'sa123456'; mysql> flush privileges;
五、網頁安裝嚮導bash
#firefox http://172.16.30.1 &
圖1.1架構
圖1.2ide
圖1.3wordpress
圖1.4
注:這裏的用戶名、密碼用於管理網站後臺
圖1.5
注:登陸網站後臺的用戶名和密碼