redhat下面安装wireshark
wireshark是一款开源网络协议分析器,它可以实时检测网络通讯数据,也可以抓取网络通讯数据。可以通过界面浏览这些数据,可以查看网络通讯数据包中每一层的详细内容。 第一步:在Windows下红帽企业版5的.iso文件中找到下面四个包,用samba共享给虚拟机。(也可以用挂载mount /dev/cdrom /mnt/cdrom 挂载cd mnt/cdr
wireshark是一款开源网络协议分析器,它可以实时检测网络通讯数据,也可以抓取网络通讯数据。可以通过界面浏览这些数据,可以查看网络通讯数据包中每一层的详细内容。
第一步:在Windows下红帽企业版5的.iso文件中找到下面四个包,用samba共享给虚拟机。
(也可以用挂载
mount /dev/cdrom /mnt/cdrom 挂载
cd mnt/cdrom 进入挂载目录
找到4个包,一般都会有的。可能要花点时间。
我的是在Server这个目录下。
)
lm_sensors-2.10.0-3.1.i386.rpm
net-snmp-5.3.1-19.e15.i386.rpm
wireshark-0.99.6-1.el5.i386.rpm
wireshark-gnome-0.99.6-1.el5.i386.rpm
第二步:用下面的四个命令安装(输入rpm -ivh ,后面输入前几个字母+tab即可)
rpm –ivh lm_sensors-2.10.0-3.1.i386.rpm
rpm –ivh net-snmp-5.3.1-19.e15.i386.rpm
rpm –ivh wireshark-0.99.6-1.el5.i386.rpm
rpm –ivh wireshark-gnome-0.99.6-1.el5.i386.rpm
第三步:用rpm –aq | grep wireshark 查看是否安装成功
显示 以下即成功
wireshark-0.99.6-1el5
wireshrak-gnome-0.99.6-1.el5
第四步:在命令行输入wireshark启动程序
http://blog.csdn.net/gzh0222/article/details/7749137
---------------------------------------------------------------------------------------------------------------------------------------
可能会出现的错误及解决方法:
在RHEL5.3,安装Wireshark需要安装以下几个安装包,这些安装包在RHEL5.3镜像光盘里面都有,如下:
libpcap-0.9.4-14.el5.i386.rpm、libpcap-devel-0.9.4-14.el5.i386.rpm(libpcap抓包软件必需的,系统默认已经安装好了。) lm_sensors-2.10.7-4.el5.i386.rpm、net-snmp-5.3.2.2-5.el5.i386.rpm、wireshark-1.0.3-4.el5_2.i386.rpm、wireshark-gnome-1.0.3-4.el5_2.i386.rpm
前两个包都可以安装,但是安装第三个包时,出现了错误:
[root@localhost wireshark]# rpm -ivh wireshark-1.0.3-4.el5_2.i386.rpm
warning: wireshark-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libsmi.so.2 is needed by wireshark-1.0.3-4.el5_2.i386
[root@localhost wireshark]# rpm -ivh wireshark-gnome-1.0.3-4.el5_2.i386.rpm
warning: wireshark-gnome-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libsmi is needed by wireshark-gnome-1.0.3-4.el5_2.i386
libsmi.so.2 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
libwireshark.so.0 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
libwiretap.so.0 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
wireshark = 1.0.3-4.el5_2 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
仔细看后,发现没有安装libsmi包,于是在RHEL5.3镜像光盘找到libsmi包安装:
[root@localhost wireshark]# rpm -ivh libsmi-0.4.5-2.el5.i386.rpm
warning: libsmi-0.4.5-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libsmi ########################################### [100%]
然后再重新安装那四个安装包,成功!
[root@localhost wireshark]# rpm -ivh lm_sensors-2.10.7-4.el5.i386.rpm
warning: lm_sensors-2.10.7-4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package lm_sensors-2.10.7-4.el5.i386 is already installed
[root@localhost wireshark]# rpm -ivh net-snmp-5.3.2.2-5.el5.i386.rpm
warning: net-snmp-5.3.2.2-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package net-snmp-5.3.2.2-5.el5.i386 is already installed
[root@localhost wireshark]# rpm -ivh wireshark-1.0.3-4.el5_2.i386.rpm
warning: wireshark-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:wireshark ########################################### [100%]
[root@localhost wireshark]# rpm -ivh wireshark-gnome-1.0.3-4.el5_2.i386.rpm
warning: wireshark-gnome-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:wireshark-gnome ########################################### [100%]
[root@localhost wireshark]# wireshark
http://blog.163.com/guotao_163/blog/static/2368282201102011348483/
更多推荐
所有评论(0)