要停止CentOS上的dhcpclient服务,请执行以下命令:
sudo systemctl stop dhcpd
如果您使用的是较旧的系统,可能需要使用以下命令:
sudo service dhcpd stop
这将停止dhcpclient服务。如果您想要禁用此服务,以防止在系统启动时自动运行,请执行以下命令:
sudo systemctl disable dhcpd
或者对于较旧的系统:
sudo chkconfig dhcpd off
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>