Skip to content Skip to main navigation Skip to footer

ubuntu/debian: 命令行下重启Named服务

在ubuntu或debian里,如何在命令行下重新启动named服务呢?你可以使用位于/etc/init.d下的进程启动脚本。另一种方法是使用service命令去启动/停止/重启named服务。脚本名字是:
ubuntu_named_restart1
服务的名字是:bind9
示例:
启动named服务

$sudo service bind9 start
 

$sudo /etc/init/d/bind9 start
 

停止named服务

$sudo service bind9 stop
 

$sudo /etc/init.d/bind9 stop
 

重启named 服务

$sudo service bind9 restart
 

$sudo /etc/init.d/bind9 restart
 

查看当前named服务的状态

$sudo service bind9 status
 

$sudo /etc/init.d/bind9 status
 

命令输出如下:
ubuntu_named_restart2

0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.