原文来源如下,实际运行有点小问题,略做修改
获得Disruptor
可以通过Maven来安装Disruptor。
{"type":"编程笔记"}
You'll find this post in your _posts directory - edit this post and re-build (or run with the -w switch) to see your changes!
To add new posts, simply add a file in the _posts directory that follows the convention: YYYY-MM-DD-name-of-post.ext.
Jekyll also offers powerful support for code snippets:
mysql抛出如下错误信息:
mysql日志抛出如下错误:
ERROR 1017 (HY000): Can’t find file: (errno: 13)
原因是对mysql的数据库数据文件没有读写权限。
以ubuntu系统为例子,一般数据文件放在/var/lib/mysql下面,数据库目录的权限是700(rwx--),所有者是mysql,数据库目录下面的文件权限是660(rw-rw-), 所有者也是mysql。
如果重启服务器前没有关闭mysql,mysql的myisam表很有可能会出现ERROR #1017 :Can't find file: '/xxx.frm'的错误。
出现这个问题的原因不是/xxx.frm这个文件不见了,而是这些文件的所有者权限(应该要是mysql)不知道为什么变成了root。
ubuntu 12.04上编译Objective-C代码。