systemctl启动服务的时候报错 Error:no space left on device
看到报错提示后,先检查了一下磁盘使用率和inode数量,发现都正常。
这是网上搜索了一下,找到了解决办法
By default, Linux only allocates 8192 watches for inotify, which is ridiculously low. And when it runs out, the error is also No space left on device
, which may be confusing if you aren't explicitly looking for this issue.
解决办法:
vi /etc/sysctl.conf # 增加如下参数 fs.inotify.max_user_watches = 262144 # sysctl -p 使配置生效 fs.file-max = 1020000 fs.inotify.max_user_watches = 262144 systemctl daemon-reload
posted on 2020-11-24 09:31 hopeless-dream 阅读(1125) 评论(0) 编辑 收藏 举报