Heim  >  Fragen und Antworten  >  Hauptteil

So zeigen Sie Serverprotokolle unter Linux an

Ich verwende einen Linux-Cloud-Server. Wie kann ich das Startprotokoll des Servers unter Linux anzeigen? Verwenden Sie den Befehl „more“ oder den Befehl „tail“?

想无想无1064 Tage vor1822

Antworte allen(3)Ich werde antworten

  • yntdx

    yntdx2021-10-11 09:49:18

    通常我们看日志就是你说的那两种命令,过程要么翻页看,要么在线看,等日志中出现某种状况。不过我用的是小鸟云的Linux云服务器,在金秋上云季入手才0.2/天https://www.niaoyun.com/#/act/2021autumn/?utm_source=p,性能非常稳定,在查看服务器日志时,我是这样操作的:用cat命令查看linux服务器日志文件cat /var/log/messagescat /var/log/dmesg这个是硬件的    日 志 文 件 说 明/var/log/message 系统启动后的信息和错误日志,是red hat linux中最常用的日志之一/var/log/secure 与安全相关的日志信息/var/log/maillog 与邮件相关的日志信息/var/log/cron 与定时任务相关的日志信息/var/log/spooler 与uucp和news设备相关的日志信息/var/log/boot.log 守护进程启动和停止相关的日志消息 

    Antwort
    0
  • StornierenAntwort