In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "what is the Linux system log". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The information of the system and how it should be recorded in those files, or how it should be displayed, is controlled by / etc/syslog.conf. The following is a description of some important record files in the / var/log directory of RedHat.
1. / var/log/lastlog: record the last time each user checked in to the system, so when the user checked in, it will show the time of his or her last check-in. You should pay attention to this time. If it is not the time of your last check-in, it means that your account may have been stolen. This file can be read with the / usr/bin/lastlog instruction.
We don't know if you saw it when we logged in. LINUX will show the time of our last login. We didn't know when we first opened it, but we saw it the second time! Hehe, I am careful enough!
2. / var/run/utmp: record the time each user checked into the system, who, users, finger and other instructions will check this file.
3. / var/log/wtmp: record the check-in and check-out time of each user. The last command will check this file. This file also records the actions of shutdown and reboot.
4. / var/log/secure: record which sites are connected and which addresses failed.
5. / var/log/maillog: record sendmail, pop and other related information.
6. / var/log/cron: record information related to crontab
7. / var/log/dmesg: / bin/dmesg will display this file, which is the screen message at boot time.
8. / var/log/xferlog: record those addresses and ftp to get those files.
9. / var/log/messages: most of the messages of the system are recorded here, including login, check password, failed login, ftp, su and so on.
This is the end of the content of "what is the Linux system log". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.