kill 鍙戦€佹秷鎭粰杩涚▼鍛戒护

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kill 鍙戦€佹秷鎭粰杩涚▼鍛戒护相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e8%bf%9b%e7%a8%8b' title='杩涚▼'>杩涚▼   kill   res   command   span   value   only   info   name   

鍔熻兘锛?/h2>

kill鍛戒护鍙戦€佷俊鍙风粰杩涚▼銆?/p>

鏍煎紡锛?/h2>

 

kill [-s signal|-p] [-q sigval] [-a] [--] pid...
kill -l [signal]

kill [-s <淇℃伅鍚嶇О鎴栫紪鍙?gt;][绋嬪簭]銆€鎴栥€€kill [-l <淇℃伅缂栧彿>]

 

鍙傛暟锛?/h2>

OPTIONS
pid... Specify the list of processes that kill should signal. Each pid can be
one of five things:

n where n is larger than 0. The process with pid n will be sig鈥?br /> naled.

0 All processes in the current process group are signaled.

-1 All processes with pid larger than 1 will be signaled.

-n where n is larger than 1. All processes in process group n are  //淇℃伅缂栧彿
signaled. When an argument of the form 鈥?n鈥?is given, and it is
meant to denote a process group, either the signal must be speci鈥?br /> fied first, or the argument must be preceded by a 鈥?-鈥?option,
otherwise it will be taken as the signal to send.

commandname
All processes invoked using that name will be signaled.

-s, --signal signal //淇℃伅鍚嶇О
Specify the signal to send. The signal may be given as a signal name or
number.

-l, --list [signal] //鎵撳嵃缂栧彿
Print a list of signal names, or convert signal given as argument to a
name. The signals are found in /usr/include/linux/signal.h

-L, --table
Similar to -l, but will print signal names and their corresponding num鈥?br /> bers.

-a, --all
Do not restrict the commandname-to-pid conversion to processes with the
same uid as the present process.

-p, --pid
Specify that kill should only print the process id (pid) of the named
processes, and not send any signals.

-q, --queue sigval
Use sigqueue(2) rather than kill(2) and the sigval argument is used to
specify an integer to be sent with the signal. If the receiving process
has installed a handler for this signal using the SA_SIGINFO flag to
sigaction(2), then it can obtain this data via the si_value field of the
siginfo_t structure.

瀹炰緥锛?/h2>

-l 缂栧彿

鎶€鏈浘鐗? src=

 

 1.2 鍙戦€丼IGHUP淇″彿锛屽彲浠ヤ娇鐢ㄤ竴涓嬩俊鍙?nbsp;

鎶€鏈浘鐗? src=

 

 1.3  褰诲簳鏉€姝昏繘绋?/p>

鎶€鏈浘鐗? src=

以上是关于kill 鍙戦€佹秷鎭粰杩涚▼鍛戒护的主要内容,如果未能解决你的问题,请参考以下文章

linux ping鍛戒护

绐ユ帰婧愮爜锛岃鎴戞洿鍔犱紭闆呯殑浣跨敤Kafka鐢熶骇鑰咃紒

浠庢簮鐮佸垎鏋愬浣曚紭闆呯殑浣跨敤 Kafka 鐢熶骇鑰?/h1>

涓€瀛﹀氨浼氱殑git鍛戒护

Windows鍛戒护

Linux绯荤粺-鍛戒护琛屽揩鎹烽敭