last: /var/log/wtmp: No such file or directory的解决办法教程
当我们想查看登录日志的时候 用到last命令 有时候会出现报错的问题
last: /var/log/wtmp: No such file or directory
Perhaps this file was removed by the operator to prevent logging last info.
其实这是日志文件被删了 我们只需要重新建立个新的即可!
touch /var/log/wtmp ; chown root:utmp /var/log/wtmp ; chmod 0664 /var/log/wtmp
然后就会记录了哦!
THE END
0
二维码
海报
last: /var/log/wtmp: No such file or directory的解决办法教程
当我们想查看登录日志的时候 用到last命令 有时候会出现报错的问题
last: /var/log/wtmp: No such file or directory
Perhaps this file was removed by the……

共有 0 条评论