本文阅读量 次
systemctl 命令用法¶
启动某服务¶
sudo systemctl start postgresql.service
停止某服务¶
sudo systemctl stop postgresql.service
重启某服务¶
sudo systemctl restart postgresql.service
查询某服务状态¶
sudo systemctl status postgresql.service
¶
根据服务状态列出对应服务¶
sudo systemctl list-units --type=service --state=running
sudo systemctl list-units --type=service --state=active
系统启动时自动运行某服务¶
sudo systemctl enable postgresql.service
sudo systemctl status nginx
157.230.39.219
tanaka 91.47.212.41