公司要求用WordPress来做blog,看到很多人也用这个做blog,上网找了个安装包,
wget http://wpcn.googlecode.com/files/WordPress.v2.8.4.Incl.Simp.Chinese.Pack.v1-wpcng.tar.gz
tar xzvf WordPress*.tar.gz
mv wordpress /var/www/html/wordpress
然后到数据库服务器上建WordPress的库,
$ mysql -u root -p Enter password: Type 'help;' or '/h' for help. Type '/c' to clear the buffer. mysql> CREATE DATABASE ''databasename''; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON ''databasename''.* TO "''wordpressusername''"@"''hostname''" -> IDENTIFIED BY "''password''"; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.01 sec) mysql> EXIT Bye $
然后访问 http://IP/wordpress进行设置就OK了