天天看点

搭建个人博客网站

以  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

搭建个人博客网站
搭建个人博客网站

继续阅读