1. 用 killall命令,加进程名重启
[root@localhost objects]# killall -HUP nagios
2. 用kill命令,加进程号重启
[root@localhost objects]# ps -ef | grep nagios
nagios 3066 1 0 Oct11 ? 00:00:03 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 5169 2510 0 01:28 pts/0 00:00:00 grep nagios
[root@localhost objects]# kill -HUP 3066
阅读(5511) | 评论(0) | 转发(0) |