我在Ubuntu服务器上运行rails应用程序时出现以下错误
致命:侦听错误:无法监视目录的更改.参观
我遵循了上面的GitHub页面,但我无法在设置为8192的max_user_watches中写入,我想将其设置为524288.
提前感谢!!!
我在Ubuntu服务器上运行rails应用程序时出现以下错误
致命:侦听错误:无法监视目录的更改.参观
我遵循了上面的GitHub页面,但我无法在设置为8192的max_user_watches中写入,我想将其设置为524288.
提前感谢!!!
https://github.com/guard/listen/blob/master/README.md#increasing-the-amount-of-inotify-watchers 0太小了,请try 使用524288,如wiki页面中所述:https://github.com/guard/listen/blob/master/README.md#increasing-the-amount-of-inotify-watchers
Listen默认情况下在Linux上使用inotify来监视
和
如果您运行的是Debian、RedHat或其他类似的Linux
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
If you are running ArchLinux, run the following comm和 instead
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system