今天运行了一下privoxy,蹦出来了:Failed to add /run/systemd/ask-password to directory watch: No space left on device


df查了一下磁盘空间,完全够用,找了一下解决方法,做个记录

1
2
3
4
sudo -i
echo 1048576 > /proc/sys/fs/inotify/max_user_watches
exit
sudo vim /etc/sysctl.conf

sysctl.conf中加入:

1
fs.inotify.max_user_watches=1048576

参考:https://askubuntu.com/questions/828779/failed-to-add-run-systemd-ask-password-to-directory-watch-no-space-left-on-dev