Home  >  Q&A  >  body text

How to view server logs in Linux

I am using a Linux cloud server. How do I view the server’s startup log in Linux? Do you use the more command or the tail command?

想无想无1021 days ago1750

reply all(3)I'll reply

  • yntdx

    yntdx2021-10-11 09:49:18

    Usually when we look at logs, we use the two commands you mentioned. During the process, we either turn the page to read it, or read it online, and wait for some situation to appear in the log. However, I use Xiaoniao Cloud’s Linux cloud server. It only cost 0.2/day when I bought it during the golden autumn cloud season https://www.niaoyun.com/#/act/2021autumn/?utm_source=p. The performance is very stable. Check it out When checking the server log, I do this: use the cat command to view the linux server log file cat /var/log/messages cat /var/log/dmesg This is the hardware log file Description /var/log/message After the system starts Information and error logs are one of the most commonly used logs in red hat Linux /var/log/secure Security-related log information /var/log/maillog Mail-related log information /var/log/cron and scheduled tasks Related log information/var/log/spooler Log information related to uucp and news devices/var/log/boot.log Log information related to daemon start and stop

    reply
    0
  • Cancelreply