systemd:
http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html
https://linux.cn/article-5926-1.html
查看每个服务的启动耗时
systemd-analyze blame
查看本地化设置
localectl
查看当前时区设置
timedatectl
显示所有可用的时区
timedatectl list-timezones
显示系统所有服务
systemctl list-unit-files
systemctl list-unit-files --type=service
systemctl list-unit-files | grep docker
enable 会在启动过程中禁用该设备。但是该单元可以在启动后随时启动。
systemctl enable httpd.service
完全禁用该单元
systemctl mask httpd.service
systemctl unmask httpd.service
注销服务
systemctl mask <service> 是注销服务的意思。
# 注销服务意味着:
该服务在系统重启的时候不会启动
该服务无法进行做systemctl start/stop操作
该服务无法进行systemctl enable/disable操作