在ubuntu上运行service服务报错:

Failed to allocate directory watch: Too many open files

解决方法:

vim /etc/sysctl.conf

fs.inotify.max_user_instances=512
fs.inotify.max_user_watches=262144

在这里插入图片描述

生效

sysctl -p

参考文献:https://blog.csdn.net/Bobsweetie/article/details/111688878

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐