網站伺服器部署及最佳化---2---部署wordpress網站(rhel6.5)

來源:互聯網
上載者:User

標籤:wordpress   linuxcast   網站部署   

RedHat Enterprise 6.5環境下wordpress網站部署


第一步:下載wordpress網站壓縮包並解壓


[[email protected] data]# wget http://cn.wordpress.org/wordpress-3.9-zh_CN.zip -O wordpress.zip

[[email protected] data]# unzip wordpress.zip

[[email protected] data]# mkdir /var/www/html/linuxcast

[[email protected] data]# mv wordpress/* /var/www/html/linuxcast


第二步:修改網站檔案的所有者

[[email protected] linuxcast]# cd ..

[[email protected] html]# chown -R apache.root linuxcast/


第三步:部署wordpress(linuxcast)網站

1,登入mysql資料庫,並建立

[[email protected] Desktop]# mysql -p

Enter password: 

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 2

Server version: 5.1.71 Source distribution


Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.


mysql> create database linuxcast3_9;

Query OK, 1 row affected (0.00 sec)


mysql> quit

Bye

[[email protected] Desktop]# 


2,修改/etc/hosts檔案,添加:

192.168.8.86    linuxcast.net    www.linuxcast.net


3,訪問該網站並安裝wordpress網站

[[email protected] ~]# firefox http://www.linuxcast.net/linuxcast &

[1] 6185


4,相關設定選項:

資料庫名:linuxcast3_9

使用者名稱:root

密碼:linuxcast

資料庫主機:localhost

表首碼:wp_


註:完成這一步的時候,在網站目錄(/var/www/html/linuxcast)下會產生wp-config.php檔案,如果想重新安裝,刪除該檔案重新安裝即可!


點擊提交→進行安裝→

網站標題:Zhangsp‘s Web

使用者名稱:zhangsp

輸入密碼:linuxcast

電子郵件:[email protected]

安裝→完成


安裝過程:


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/45/37/wKioL1PkZZ7iiXPRAAHi1g74Zfs932.jpg" style="float:none;" title="1" alt="wKioL1PkZZ7iiXPRAAHi1g74Zfs932.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/45/37/wKiom1PkZIXQO4gwAAK8LPwODFw878.jpg" style="float:none;" title="2" alt="wKiom1PkZIXQO4gwAAK8LPwODFw878.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/45/37/wKioL1PkZZ6gJJmiAAKp96zuCrY376.jpg" style="float:none;" title="3" alt="wKioL1PkZZ6gJJmiAAKp96zuCrY376.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/45/37/wKiom1PkZIXwQbVTAAHaPrmqtzI092.jpg" style="float:none;" title="4" alt="wKiom1PkZIXwQbVTAAHaPrmqtzI092.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/45/37/wKioL1PkZZ7xPoXIAAKzuoAghqs693.jpg" style="float:none;" title="5" alt="wKioL1PkZZ7xPoXIAAKzuoAghqs693.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/45/37/wKiom1PkZIXTHn_dAAHwxaYc7N8550.jpg" style="float:none;" title="6" alt="wKiom1PkZIXTHn_dAAHwxaYc7N8550.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/45/37/wKioL1PkZZ-TW05lAAHDfonW5B8951.jpg" style="float:none;" title="7" alt="wKioL1PkZZ-TW05lAAHDfonW5B8951.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/45/37/wKiom1PkZIbDs2PyAASum3LlUOI196.jpg" style="float:none;" title="8" alt="wKiom1PkZIbDs2PyAASum3LlUOI196.jpg" />


5,後台管理


登入後台:

http://www.linuxcast.net/linuxcast/wp-login.php

http://www.linuxcast.net/linuxcast/wp-admin/

使用者名稱為:zhangsp

密碼:linuxcast


註:wordpress網站的環境必須滿足下面的要求:

php5.2.4或更新版本

MySQL5.0或更新版本

Apache mod_rewrite模組


本文出自 “森林部落格” 部落格,請務必保留此出處http://murongqingqqq.blog.51cto.com/2902694/1537345

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.