Yesterday suddenly I checked my apache log using following command
[root@localhost ~]# tailf /var/log/httpd/access_log
but above command was showing error. It is like below
tail: cannot watch `/var/log/httpd/access_log': No space left on device
After i searched google and found solution.
I need to increase inotify value. I checked my default inotify value in below path
" /proc/sys/fs/inotify/max_user_watches " after that i changed that value 8192 to 16384.
This above value depends upon your needs.
[root@localhost ~]# cat /proc/sys/fs/inotify/max_user_watches
8192
[root@localhost ~]# echo 16384 > /proc/sys/fs/inotify/max_user_watches
Issue resolved....
[root@localhost ~]# tailf /var/log/httpd/access_log
but above command was showing error. It is like below
tail: cannot watch `/var/log/httpd/access_log': No space left on device
After i searched google and found solution.
Solution:
I need to increase inotify value. I checked my default inotify value in below path
" /proc/sys/fs/inotify/max_user_watches " after that i changed that value 8192 to 16384.
This above value depends upon your needs.
[root@localhost ~]# cat /proc/sys/fs/inotify/max_user_watches
8192
[root@localhost ~]# echo 16384 > /proc/sys/fs/inotify/max_user_watches
Issue resolved....
No comments:
Post a Comment