linux修改文件时报错 E667: Fsync failed


vim /proc/sys/fs/inotify/max_user_watches

保存退出的时候报错如下:

"/proc/sys/fs/inotify/max_user_watches"
"/proc/sys/fs/inotify/max_user_watches" E667: Fsync failed
Press ENTER or type command to continue

网上的解决方案是:

echo "99999999">/proc/sys/fs/inotify/max_user_watches

这样就行了,我也不知道是什么原因,先记着。


Whatever is worth doing is worth doing well.