[Linux] 利用 Systemd 管理應用程式 – 常用指令

為了要讓 NetCore 背景執行利用了 Systemd 將服務掛在背景執行,應用程式的執行紀錄可以利用 journal 來觀看。

  • 查詢版本
  • 已註冊清單
  • 設定檔
  • 目前 Log 大小
  • 僅顯示指定服務產生的訊息

來源:

  1. 使用Systemd管理应用
  2. Limit the size of .log files & the journal
  3. journalctl log file size
  4. https://www.suse.com/zh-tw/documentation/sled-12/book_sle_admin/data/journalctl_filtering.html


這裡的資訊對您有用嗎?歡迎斗內給我