Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
16016598
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
16016598
编写于
7月 20, 2020
作者:
N
nicolargo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update documentation for 'k' hotkey (kill process)
上级
c149a1b9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
5 deletion
+19
-5
conf/glances.conf
conf/glances.conf
+1
-0
docs/aoa/ps.rst
docs/aoa/ps.rst
+3
-0
docs/gw/rabbitmq.rst
docs/gw/rabbitmq.rst
+1
-0
docs/man/glances.1
docs/man/glances.1
+10
-1
glances/outputs/glances_curses.py
glances/outputs/glances_curses.py
+4
-4
未找到文件。
conf/glances.conf
浏览文件 @
16016598
...
...
@@ -461,6 +461,7 @@ port=5672
user
=
guest
password
=
guest
queue
=
glances_queue
#protocol=amqps
[
mqtt
]
# Configuration for the --export mqtt option
...
...
docs/aoa/ps.rst
浏览文件 @
16016598
...
...
@@ -128,6 +128,9 @@ The extended stats feature can be enabled using the
``--enable-process-extended`` option (command line) or the ``e`` key
(curses interface).
In curses/standalone mode, you can select a process using ``UP`` and ``DOWN`` and press:
- ``k`` to kill the selected process
.. note::
Limit for CPU and MEM percent values can be overwritten in the
configuration file under the ``[processlist]`` section. It is also
...
...
docs/gw/rabbitmq.rst
浏览文件 @
16016598
...
...
@@ -15,6 +15,7 @@ following:
user=glances
password=glances
queue=glances_queue
#protocol=amqps
and run Glances with:
...
...
docs/man/glances.1
浏览文件 @
16016598
.\" Man page generated from reStructuredText.
.
.TH "GLANCES" "1" "
May 12
, 2020" "3.1.5_DEVELOP" "Glances"
.TH "GLANCES" "1" "
Jul 20
, 2020" "3.1.5_DEVELOP" "Glances"
.SH NAME
glances \- An eye on your system
.
...
...
@@ -395,6 +395,9 @@ Sort processes by I/O rate
Show/hide IP module
.TP
.B \fBk\fP
Kill selected process (only in curses/standalone mode)
.TP
.B \fBK\fP
Show/hide TCP connections
.TP
.B \fBl\fP
...
...
@@ -479,6 +482,12 @@ Enable/disable mean GPU mode
.TP
.B \fB/\fP
Switch between process command line or command name
.TP
.B \fBUP\fP
Up in the processes list
.TP
.B \fBDOWN\fP
Down in the processes list
.UNINDENT
.sp
In the Glances client browser (accessible through the \fB\-\-browser\fP
...
...
glances/outputs/glances_curses.py
浏览文件 @
16016598
...
...
@@ -76,8 +76,8 @@ class _GlancesCurses(object):
'h'
:
{
'switch'
:
'help_tag'
},
'i'
:
{
'sort_key'
:
'io_counters'
},
'I'
:
{
'switch'
:
'disable_ip'
},
'k'
:
{
'switch'
:
'disable_connections'
},
# 'K' > Kill selected process
# 'k' > Kill selected process
'K'
:
{
'switch'
:
'disable_connections'
},
'l'
:
{
'switch'
:
'disable_alert'
},
'm'
:
{
'sort_key'
:
'memory_percent'
},
'M'
:
{
'switch'
:
'reset_minmax_tag'
},
...
...
@@ -388,8 +388,8 @@ class _GlancesCurses(object):
# 'f' > Show/hide fs / folder stats
self
.
args
.
disable_fs
=
not
self
.
args
.
disable_fs
self
.
args
.
disable_folders
=
not
self
.
args
.
disable_folders
elif
self
.
pressedkey
==
ord
(
'
K
'
):
# '
K
' > Kill selected process (after confirmation)
elif
self
.
pressedkey
==
ord
(
'
k
'
):
# '
k
' > Kill selected process (after confirmation)
self
.
kill_process
=
not
self
.
kill_process
elif
self
.
pressedkey
==
ord
(
'w'
):
# 'w' > Delete finished warning logs
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录