作为CentOs 6.4服务器的root用户,我在应用程序中遇到了这个错误:
Fri May 16 01:45:23 2014 Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches@H_502_3@但是当我尝试以root身份运行命令时,我被拒绝了.
# echo 100000 > /proc/sys/fs/inotify/max_user_watches -bash: /proc/sys/fs/inotify/max_user_watches: Permission denied@H_502_3@即使我编辑/etc/sysctl.conf,我也会被拒绝:
# echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf # sysctl -p error: permission denied on key 'fs.inotify.max_user_watches@H_502_3@我怎么解决这个问题?