笔记一下

重启 mysql 时,先
update mysql.user set user=xxx_x where user=xxx;
flush priveleges;
启动之后再update 回来
因为shutdown之前 会把redo log里的脏数据刷到表空间
数据量大的情况下,如果这时候前台还有请求的话,这个过程会非常漫长
一般来说 set global read_only=1; 也可以解决问题

感谢showsa提供这个技巧

 

明白某些发行版里自带的 apache 里,vhosts 分了 site-avaliable 和 site-enabled 有什么好处了。

这样方便在所有的服务器上自动化部署相同的程序代码和 apache 相关的 vhost 配置。哪些服务器上具体跑哪些站点只需要把 site-avaliable 里需要启用的链接到 site-enabled 里就行了。在服务器多的时候就会方便管理。

 

3 thoughts on “笔记一下

  1. Lukas February 26, 2009 / 4:32 pm

    专业就是王道啊

  2. 假小白 February 25, 2009 / 9:35 pm

    那个,神仙,你的帖子凡人看不懂啊。
    oh my god!

  3. 张小龙 February 25, 2009 / 11:57 am

    我就只能路过下了

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s