adolsai's echo

typecho change siteUrl

1、现在域名供应商修改域名指向

2、然后修改本地typecho数据库

mysql -u*name* -p*password* typecho

mysql> show tables;
+-----------------------+
| Tables_in_typecho     |
+-----------------------+
| typecho_comments      |
| typecho_contents      |
| typecho_fields        |
| typecho_metas         |
| typecho_options       |
| typecho_relationships |
| typecho_users         |
+-----------------------+
7 rows in set (0.00 sec)

mysql> select * from typecho_options where name like 'site%' \G *************************** 1. row *************************** name: siteUrl user: 0 value: http://blog.0u0y.com 1 row in set (0.01 sec)

mysql> update typecho_options set value='http://blog.0u0y.com' where name='siteUrl' and user=0;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1  Changed: 0  Warnings: 0

个人资料那里还有一个需要改改的

3、修改域名配置

vim /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
        DocumentRoot ***/typecho
        ServerName 0u0y.com
</VirtualHost>

改为:

<VirtualHost *:80>
        DocumentRoot ***/typecho
        ServerName blog.0u0y.com
</VirtualHost>

4、测试

标签:#typecho #domain