天天看點

搭建個人部落格網站

以  Centos6   為例:

方法/步驟:

 1、首先安裝LAMP環境。

    # yum install nginx mariadb php-fpm php-mysql

 2、下載下傳wordpress安裝程式,解壓到/var/www/html目錄下

[root@MyServer html]# wget  https://cn.wordpress.org/wordpress-4.5.1-zh_CN.zip

[root@MyServer html]#  tar xf wordpress-4.5.1-zh_CN.zip

3、啟動nginx

   service  nginx  start

4、配置Mysql資料庫,并添加使用者:

 建立資料庫:       # create database wordpress;

 添加使用者及密碼:# grant all on wordpress.* to  tain@localhost identified by "123456";

5、配置nginx,開啟php-fpm支援。 

     #  service php-fpm start

     # vim /etc/nginx/conf.d/default.conf

搭建個人部落格網站
搭建個人部落格網站

繼續閱讀