How to solve the Linux system Tail command prompt No space left on device problem

  

Linux system, sometimes we will use the tail command, it can output the last part of the specified file to the standard device as required, that is to say we are The latest file content can be seen at any time in the terminal, which is very helpful for our use. However, some users recently found the system prompt No space left on device when using the tail command. How to solve this problem?

Solution:

# tail -f. . /logs/catalina.out

tail: cannot watch `. . /logs/catalina.out‘: No space left on device

df -h See if there is space left

df -i See if there is space left in the inode

Final solution:< Br>

# vim /etc/sysctl.conf

Add the following:

fs.inotify.max_user_watches = 32768

Effective:

# Sysctl -p /etc/sysctl.conf

Test again:

# tail . . /logs/catalina.out

Normal output, successful.

The above is the solution to the problem of No space left on device in the Linux system tail command. If there is a problem with this user, use the Xiaobian method to solve it.

Copyright © Windows knowledge All Rights Reserved