yum install -y wireshark
[root@lb01 ~]# wireshark-bash: wireshark: command not found
[root@lb01 ~]# whereis wiresharkwireshark: /usr/lib64/wireshark /usr/share/wireshark
[root@lb01 ~]# cd /usr/lib64/wireshark/[root@lb01 wireshark]# lsplugins python
[root@lb01 wireshark]# cd /usr/share/wireshark/;lsAUTHORS-SHORT diameter mergecap.html smi_modulescapinfos.html dtd_gen.lua pdml2html.xsl text2pcap.htmlcfilters dtds profiles tpncpcolorfilters dumpcap.html radius tshark.htmlconsole.lua editcap.html randpkt.html wimaxasncpCOPYING help rawshark.html wireshark-filter.htmldfilters ipmap.html reordercap.html wireshark.htmldftest.html manuf services ws.css
解决方法:
yum search wireshark #(搜索匹配特定字符的rpm包)
yum install wireshark-gnome.x86_64 -y #(wireshark的图形界面)
[root@lb01 wireshark]# whereis wiresharkwireshark: /usr/sbin/wireshark /usr/lib64/wireshark /usr/share/wireshark /usr/share/man/man1/wireshark.1.gz
不能显示:
[root@lb01 wireshark]# wireshark(wireshark:4539): Gtk-WARNING **: cannot open display:
1、SDL安装问题,开发机与本机环境必须都支持SDL,在两台机器上正确安装或更新SDL程序
2、检查已开启
# vim /etc/ssh/sshd_confi
X11Forwarding yes
3、开启xshell客户端功能
参考:
1
2