• React Native 问题


    The technical details

    Listen uses inotify by default on Linux to monitor directories for changes. It's not uncommon to encounter a system limit on the number of files you can monitor. For example, Ubuntu Lucid's (64bit) inotify limit is set to 8192.

    You can get your current inotify file watch limit by executing:

    $ cat /proc/sys/fs/inotify/max_user_watches

    When this limit is not enough to monitor all files inside a directory, the limit must be increased for Listen to work properly.

    You can set a new limit temporary with:

    $ sudo sysctl fs.inotify.max_user_watches=524288
    $ sudo sysctl -p

    If you like to make your limit permanent, use:

    $ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
    $ sudo sysctl -p

    You may also need to pay attention to the values of max_queued_events and max_user_instances if Listen keeps on complaining.

  • 相关阅读:
    ShellExecuteEx 函数说明
    npm
    Byte和char
    如何高效阅读一个项目
    C++中慎用malloc
    #ifdef
    string
    C++与C混合编译
    git@github.com: Permission denied (publickey).
    connect to host github.com port 22: Connection refused
  • 原文地址:https://www.cnblogs.com/cxsy/p/7296604.html
Copyright © 2020-2023  润新知