Differences between revisions 1 and 2
Revision 1 as of 2018-09-05 22:15:39
Size: 359
Editor: PieterSmit
Comment:
Revision 2 as of 2018-09-05 22:20:43
Size: 798
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
journalctl -xe  * Set timezone for log display using
   * $ timedatectl list-timezones
   * $ sudo timedatectl set-timezone zone
   * $ timedatectl status

   * only logs for current boot / since last reboot
     * $ journalctl -b
     * $ journalctl --list-boots
     * $ journalctl --since "2015-01-10" --until "2015-01-11 03:00"
     * $ journalctl --since 09:00 --until "1 hour ago"

   * journalctl -u nginx.service -u php-fpm.service --since today

Linux systemd startup and process monitoring

  • User startup scripts in
    1. $ ls /etc/systemd/system/
    2. $

View process logs with jounalctl

  • Links digitalocean

  • Set timezone for log display using
    • $ timedatectl list-timezones
    • $ sudo timedatectl set-timezone zone
    • $ timedatectl status
    • only logs for current boot / since last reboot
      • $ journalctl -b
      • $ journalctl --list-boots
      • $ journalctl --since "2015-01-10" --until "2015-01-11 03:00"
      • $ journalctl --since 09:00 --until "1 hour ago"
    • journalctl -u nginx.service -u php-fpm.service --since today

...

Linux/Systemd (last edited 2022-03-01 19:21:19 by PieterSmit)