File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 3
3
## 其他常用命令
4
4
5
5
- 编辑 hosts 文件:` vim /etc/hosts ` ,添加内容格式:` 127.0.0.1 www.youmeek.com `
6
+ - RPM 文件操作命令:
7
+ - 安装
8
+ - `rpm -i example.rpm`,安装 example.rpm 包
9
+ - `rpm -iv example.rpm`,安装 example.rpm 包并在安装过程中显示正在安装的文件信息
10
+ - `rpm -ivh example.rpm`,安装 example.rpm 包并在安装过程中显示正在安装的文件信息及安装进度
11
+ - 查询
12
+ - `rpm -qa | grep jdk`,查看 jdk 是否被安装
13
+ - 卸载
14
+ - `rpm -e jdk`,卸载 jdk(一般卸载的时候都要先用 rpm -qa 看下整个软件的全名)
6
15
7
16
## 资料
8
17
Original file line number Diff line number Diff line change
1
+ # nmon 系统性能监控工具的使用
2
+
3
+
4
+ ## nmon 说明
5
+
6
+ - 官网:< http://nmon.sourceforge.net/pmwiki.php >
7
+ - 分析工具 nmon analyser:< https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power+Systems/page/nmon_analyser >
8
+ - > nmon是一种在AIX与各种Linux操作系统上广泛使用的监控与分析工具, nmon所记录的信息是比较全面的,它能在系统运行过程中实时地捕捉系统资源的使用情况,并且能输出结果到文件中。
9
+
10
+ ## 下载/安装
11
+
12
+ - Ubuntu:` sudo apt-get install -y nmon `
13
+ - CentOS:` sudo yum install -y nmon ` ,前提是你已经有安装 epel 源
14
+ - 或者使用 RPM 包:<http://pan.baidu.com/s/1hsFEoeg>
15
+ - 安装命令:`rpm -ivh nmon-14i-8.el6.x86_64.rpm`
16
+ - 分析工具 nmon analyser:< http://pan.baidu.com/s/1pKBLXrX >
17
+
18
+ ## 运行
19
+
20
+ - 实时监控:` nmon `
21
+ - 后台监控:` cd /opt ; nmon -f -s 10 -c 360 `
22
+ - -f :按标准格式输出文件名称:<hostname>_YYYYMMDD_HHMM.nmon
23
+ - -s :每隔n秒抽样一次,这里为10秒
24
+ - -c :取出多少个抽样数量,这里为360,即监控=10*360/3600=1小时
25
+ - 该命令启动后,会在nmon所在目录下生成监控文件,并持续写入资源数据,直至360个监控点收集完成——即监控1小时,这些操作均自动完成,无需手工干预,测试人员可以继续完成其他操作。如果想停止该监控,需要通过 `ps –ef|grep nmon` 查询进程号,然后杀掉该进程以停止监控。
26
+ - 定期监控:本质是 crontab 加上后台监控命令
27
+
28
+ ## 解析监控文件
29
+
30
+ - 把 nmon 文件转换成 csv 文件:` sort localhost_120427_0922.nmon > localhost_120427_0922.csv `
31
+ - 把 csv 转换成 Excel 图表文件:
32
+ - 打开 nmon analyser 分析工具:nmon analyser v50_2.xlsm
33
+ - 点击 Analyse nmon data 会弹出一个弹出框,选择刚刚转换的 csv 文件,然后就会自动再转化成 excel 文件
34
+
35
+
36
+ ## 资料
37
+
38
+ - [ Nmon命令行:Linux系统性能的监测利器] ( http://os.51cto.com/art/201406/442795.htm )
39
+ - [ 性能监控和分析工具--nmon] ( http://kumu1988.blog.51cto.com/4075018/1086256 )
40
+ - [ nmon以及nmon analyser 教程] ( http://www.xuebuyuan.com/1439800.html )
Original file line number Diff line number Diff line change 25
25
- [ Linux 下常用压缩文件的解压、压缩] ( File-Extract-Compress.md )
26
26
- [ Yum 下载安装包及对应依赖包] ( Off-line-Yum-Install.md )
27
27
- [ Zsh 入门] ( Zsh.md )
28
+ - [ nmon 系统性能监控工具] ( Nmon.md )
28
29
- [ SSH(Secure Shell)介绍] ( SSH.md )
29
30
- [ FTP(File Transfer Protocol)介绍] ( FTP.md )
30
31
- [ VPN(Virtual Private Network)介绍] ( VPN.md )
Original file line number Diff line number Diff line change 13
13
- [ Linux 下常用压缩文件的解压、压缩] ( File-Extract-Compress.md )
14
14
- [ Yum 下载安装包及对应依赖包] ( Off-line-Yum-Install.md )
15
15
- [ Zsh 入门] ( Zsh.md )
16
+ - [ nmon 系统性能监控工具] ( Nmon.md )
16
17
- [ SSH(Secure Shell)介绍] ( SSH.md )
17
18
- [ FTP(File Transfer Protocol)介绍] ( FTP.md )
18
19
- [ VPN(Virtual Private Network)介绍] ( VPN.md )
39
40
- [ FastDFS 安装和配置] ( FastDFS-Install-And-Settings.md )
40
41
- [ FastDFS 结合 GraphicsMagick] ( FastDFS-Nginx-Lua-GraphicsMagick.md )
41
42
- [ RabbitMQ 安装和配置] ( RabbitMQ-Install-And-Settings.md )
43
+ - [ Openfire 安装和配置] ( Openfire-Install-And-Settings.md )
44
+ - [ Rap 安装和配置] ( Rap-Install-And-Settings.md )
42
45
- [ 黑客入侵检查] ( Was-Hacked.md )
You can’t perform that action at this time.
0 commit comments