Created
November 23, 2018 03:31
-
-
Save jingmian/b92314b5a2ace44b639b647cd3a8a166 to your computer and use it in GitHub Desktop.
swooledistributed使用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//获取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