码迷,mamicode.com
首页 > 系统相关 > 详细

linux 使用systemctl 启动服务报错: Error: No space left on device

时间:2018-04-14 13:51:01      阅读:925      评论:0      收藏:0      [点我收藏+]

标签:emctl   etc   err   启动服务   file   sysctl   服务   systemctl   error:   

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

linux 使用systemctl 启动服务报错: Error: No space left on device

标签:emctl   etc   err   启动服务   file   sysctl   服务   systemctl   error:   

原文地址:https://www.cnblogs.com/mhc-fly/p/8831205.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!