我使用glide来管理依赖库,它在项目文件夹下生成了vendor文件夹,把依赖库都搬到了vendor。
终端执行:bee run,最后报错以下信息:
2017/07/27 09:40:23 [ERRO] Fail to watch directory[open /myspace/workplace/go-workspace/projects/src/aisms_server/vendor/github.com/astaxie/beego/plugins/cors: too many open files]
what's your bee version? The latest bee already exclude the vendor folder by default.
please use bee help run to check the details
谢谢,原来版本问题,我update最新版后,已经解决。
I met the same problem on macOS
Here is my solution:
use ulimit -a to check your file descriptors limit, try ulimit -S -n 2048 to increase it
then run again
check kern.maxfilesperproc and kern.maxfiles if necessary
Most helpful comment
I met the same problem on macOS
Here is my solution:
use
ulimit -ato check your file descriptors limit, tryulimit -S -n 2048to increase itthen run again
check kern.maxfilesperproc and kern.maxfiles if necessary