#################################
$ sudo systemctl poweroff
# ********Unit 管理*********
sysystemctl status apache.service
$ sudo systemctl start apache.service
$ sudo systemctl stop apache.service
$ sudo systemctl restart apache.service
$ sudo systemctl kill apache.service
$ sudo systemctl reload apache.service
$ sudo systemctl daemon-reload
$ systemctl show httpd.service
$ systemctl show -p CPUShares httpd.service
$ sudo systemctl set-property httpd.service CPUShares=500
/etc/systemd/system/xxx.service
# ********Unit 管理*********
#################################
$ hostnamectl set-hostname test
#################################
$ sudo localectl set-locale LANG=en_GB.utf8
$ sudo localectl set-keymap en_GB
#################################
$ timedatectl list-timezones
$ sudo timedatectl set-timezone America/New_York
$ sudo timedatectl set-time YYYY-MM-DD
$ sudo timedatectl set-time HH:MM:SS
#################################
$ loginctl show-user guest
#################################
# 查看所有日志(默认情况下 ,只保存本次启动的日志)
$ sudo journalctl /usr/lib/systemd/systemd
$ sudo journalctl /usr/bin/bash
$ sudo journalctl _UID=33 --since today
$ sudo journalctl -u nginx.service
$ sudo journalctl -u nginx.service --since today
$ sudo journalctl -u nginx.service -f
$ sudo journalctl --disk-usage
$ sudo journalctl --vacuum-size=1G
$ sudo journalctl --vacuum-time=1years