在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