Skip to content

Instantly share code, notes, and snippets.

@jingmian
Created November 23, 2018 03:31
Show Gist options
  • Save jingmian/b92314b5a2ace44b639b647cd3a8a166 to your computer and use it in GitHub Desktop.
Save jingmian/b92314b5a2ace44b639b647cd3a8a166 to your computer and use it in GitHub Desktop.
swooledistributed使用
//获取inotify监听数量
$ cat /proc/sys/fs/inotify/max_user_watches
8192
//增加限制以使Listen正常工作。永久方法
# benton @ benton-name in ~ [11:24:50]
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
[sudo] benton 的密码:
fs.inotify.max_user_watches=524288
# benton @ benton-name in ~ [11:26:38]
$ sudo sysctl -p
fs.file-max = 65535
fs.inotify.max_user_watches = 524288
# benton @ benton-name in ~ [11:26:44]
$ cat /proc/sys/fs/inotify/max_user_watches
524288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment