启动和停止服务

在使用 System-V 样式的 init 脚本的系统上,例如 RHEL / CentOS 6:

service <service> start

service <service> stop

在使用 systemd 的系统上,例如 Ubuntu(服务器和桌面)> = 15.04,以及 RHEL / CentOS> = 7:

systemctl <service> dnsmasq

systemctl <service> dnsmasq