翻译或纠错本页面
- Reference >
- mongo Shell Methods >
- 数据库相关方法 >
- db.killOp()
db.killOp()¶
On this page
介绍¶
- db.killOp(opid)¶
骑过指定进程ID终止一个进程。查找正在进行的操作和它们的进程ID,参见 see db.currentOp() 。
The db.killOp() method has the following parameter:
Parameter Type 介绍
op number An operation ID. 警告
Terminate running operations with extreme caution. Only use db.killOp() to terminate operations initiated by clients and do not terminate internal database operations.
Access Control¶
On systems running with authorization, to kill operations not owned by the user, the user must have access that includes the killop privilege action.