Skip to content

Instantly share code, notes, and snippets.

@yn-misaki
Last active March 22, 2019 09:09
Show Gist options
  • Save yn-misaki/0b60729cdf0e5039eef3577db1b74b8f to your computer and use it in GitHub Desktop.
Save yn-misaki/0b60729cdf0e5039eef3577db1b74b8f to your computer and use it in GitHub Desktop.
rails consoleが起動できない時の対処法(「FATAL: Listen error」エラー編) ref: http://qiita.com/yn-misaki/items/c850a07f7858437e4d26
$ bin/rails c # または bundle exec rails c
Loading development environment (Rails 4.1.15)
[1] pry(main)>
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
FATAL: Listen error: unable to monitor directories for changes.
Visit https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers for info on how to fix this.
$ cat /proc/sys/fs/inotify/max_user_instances
128
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment