在CentOS中,可以使用systemctl命令来管理系统服务。以下是一些常用的systemctl命令示例:
sudo systemctl start servicename
sudo systemctl stop servicename
sudo systemctl restart servicename
sudo systemctl reload servicename
sudo systemctl status servicename
sudo systemctl enable servicename
sudo systemctl disable servicename
sudo systemctl list-units --type=service
通过这些命令,可以方便地管理CentOS系统上的各种服务。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:如何在CentOS中使用systemd命令管理系统服务