zoukankan      html  css  js  c++  java
  • Listen error 错误和 limit of inotify watches was reached

    今天在生产环境中报错rails c中报了一个错误:

    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.
    

      报错后想看一下错误日志显示如下:

    tailf: log/xxxxxx.log: cannot add inotify watch (limit of inotify watches was reached).
    

      其实这个错误直接访问提示网站告诉的挺详细的。

    解决方案:

    • If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:
    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    • If you are running ArchLinux, run the following command instead (see here for why):
    echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
    

      

  • 相关阅读:
    实现可折叠的列表
    ajax知识点补充
    Ajax 完整教程
    从页面左边飞入页面动画效果
    文字闪烁
    点击按钮之后等待60秒
    [SCOI2016]萌萌哒
    [HNOI2011]卡农
    [NOI2015]寿司晚宴
    【bzoj 3489】A simple rmq problem
  • 原文地址:https://www.cnblogs.com/zhaojingyu/p/9297417.html
Copyright © 2011-2022 走看看