【问题标题】:I can't find configuration file of Wireshark on Centos7我在 Centos7 上找不到 Wireshark 的配置文件
【发布时间】:2020-03-14 09:54:36
【问题描述】:

我在 Centos7 上安装了 Wireshark。但是我找不到配置文件。默认情况下它应该在“/usr/local/share/Wireshark”中,但它不存在。

~[root@localhost share]# tshark -v
TShark 1.10.14 (Git Rev Unknown from unknown)

Copyright 1998-2015 Gerald Combs <gerald@wireshark.org> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GLib 2.54.2, with libpcap, with libz 1.2.7, with POSIX
capabilities (Linux), without libnl, with SMI 0.4.8, with c-ares 1.10.0, with
Lua 5.1, without Python, with GnuTLS 3.3.26, with Gcrypt 1.5.3, with MIT
Kerberos, without GeoIP.

Running on Linux 3.10.0-862.el7.x86_64, with locale en_US.UTF-8, with libpcap
version 1.5.3, with libz 1.2.7.
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz

Built using gcc 4.8.5 20150623 (Red Hat 4.8.5-36).

[root@localhost ~]# cd /usr/local/share/
[root@localhost share]# ll
total 0
drwxr-xr-x.  2 root root  28 Mar 14 16:39 applications
drwxr-xr-x.  2 root root   6 Apr 11  2018 info
drwxr-xr-x. 21 root root 243 Feb 11  2019 man
[root@localhost ~]# ll /etc/ | grep wireshark
[root@localhost ~]#

【问题讨论】:

    标签: wireshark tshark


    【解决方案1】:

    要检查 tshark 配置文件的存储位置,请使用 tshark -G folders。例如,这是我在系统上看到的:

    ubuntu$ tshark -G folders
    Temp:                   /tmp
    Personal configuration: /home/rj/.config/wireshark
    Global configuration:   /usr/share/wireshark
    System:                 /etc
    Program:                /usr/bin
    Personal Plugins:       /home/rj/.local/lib/wireshark/plugins/2.6
    Global Plugins:         /usr/lib/x86_64-linux-gnu/wireshark/plugins/2.6
    Personal Lua Plugins:   /home/rj/.local/lib/wireshark/plugins
    Global Lua Plugins:     /usr/lib/x86_64-linux-gnu/wireshark/plugins
    Extcap path:            /usr/lib/x86_64-linux-gnu/wireshark/extcap
    MaxMind database path:  /usr/share/GeoIP
    MaxMind database path:  /var/lib/GeoIP
    MaxMind database path:  /usr/share/GeoIP
    

    有关使用wireshark configuration filesofficial docs 的更多信息,其中详细说明了类型。

    【讨论】:

    • 谢谢你,我执行了你的建议,我看到配置文件在“/usr/share/Wireshark”中。
    猜你喜欢
    • 2012-02-15
    • 1970-01-01
    • 2018-07-14
    • 2019-10-30
    • 2018-06-11
    • 1970-01-01
    • 2012-07-22
    • 2015-09-27
    • 1970-01-01
    相关资源
    最近更新 更多