温馨提示×

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

小樊
98
2024-08-10 00:46:37
栏目: 智能运维

在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服务。

0