温馨提示×

ubuntu dnsmasq的启动与停止技巧有哪些

小樊
218
2024-08-10 00:46:37
栏目: 智能运维
Ubuntu服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

在Ubuntu上启动和停止dnsmasq服务可以使用以下命令:

  1. 启动dnsmasq服务:
sudo systemctl start dnsmasq
  1. 停止dnsmasq服务:
sudo systemctl stop dnsmasq
  1. 重启dnsmasq服务:
sudo systemctl restart dnsmasq
  1. 查看dnsmasq服务状态:
sudo systemctl status dnsmasq
  1. 设置dnsmasq服务开机自启动:
sudo systemctl enable dnsmasq
  1. 禁止dnsmasq服务开机自启动:
sudo systemctl disable dnsmasq

以上是常用的启动和停止dnsmasq服务的方法,可以根据需求选择适合的命令来管理dnsmasq服务。

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读:ubuntu dnsmasq的配置方法有哪些

0