1232  
查询码:00000078
Failed to allocate directory watch: Too many open files
作者: 文艺范儿 于 2021年07月27日 发布在分类 / Linux / 系统相关 下,并于 2021年07月27日 编辑

在ubuntu上运行service服务报错:
Failed to allocate directory watch: Too many open files
解决方法如下:

echo 'fs.inotify.max_user_instances=512' >> /etc/sysctl.conf
echo 'fs.inotify.max_user_watches=262144'  >> /etc/sysctl.conf

sysctl -p

echo '*               -       nofile          65535 ' >>/etc/security/limits.conf
tail -1 /etc/security/limits.conf
ulimit -SHn   65535
ulimit -n





 推荐知识

 历史版本

修改日期 修改人 备注
2021-07-27 17:33:06[当前版本] 文艺范儿 格式调整
2021-07-27 17:19:55 文艺范儿 创建版本

文艺知识分享平台 -V 4.9.5 -wcp
京公网安备100012199188号 京ICP备2021030911号