Ubuntu 使用WP搭建博客

来源:互联网 发布:spring AOP源码实现 编辑:程序博客网 时间:2024/04/28 17:44

Ubuntu 使用WP搭建博客

Luo Weifeng 2011-1-5

转载请保留:http://blog.csdn.net/luoweifeng1989/archive/2011/01/05/6118129.aspx

1. 安装LAMP 

 

具体参考我的上一篇文章http://blog.csdn.net/luoweifeng1989/archive/2011/01/05/6118006.aspx

 

2. 下载WordPress最新版

 #wget http://wordpress.org/wordpress-x.x.x.tar.gz

3. 解压到web目录

 

#tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/

 

 

4. MySQL数据库

创建数据库 wordpress 

新用户wordpress 密码wordpresspassword

 

让你的用户有足够的权限连接和操作数据库

 

 

5. 配置wordpress

复制wp-config-sample.php 到wp-config.php 然后编辑

 

define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');

 

 

6. 打开浏览器安装

  #firefox http://localhost/wordpress/wp-admin/install.php

 

7. 登录

#firefox http://localhost/wordpress

 

 

OK 一切都是这么简单,转载注明出处:http://blog.csdn.net/luoweifeng1989/archive/2011/01/05/6118129.aspx