在CentOS7中,可以使用以下命令来管理系统服务:
sudo systemctl start <service_name>
sudo systemctl stop <service_name>
sudo systemctl restart <service_name>
sudo systemctl status <service_name>
sudo systemctl enable <service_name>
sudo systemctl disable <service_name>
systemctl list-units --type=service
systemctl list-unit-files --type=service
通过以上命令,您可以方便地使用Systemd来管理CentOS7系统中的各种服务。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>