The BGPStream framework is comprised of two software packages: libBGPStream and PyBGPStream.
Note: libBGPStream must be installed prior to installing PyBGPStream
BGPStream框架由两个软件包组成:libBGPStream和PyBGPStream。
注意:在安装PyBGPStream之前,必须确保已经安装libBGPStream
1. Installing libBGPStream
官网安装教程:https://bgpstream.caida.org/docs/install/bgpstream
1.1 Setup apt repositories
Install dependencies
sudo apt-get update
sudo apt-get install -y curl apt-transport-https ssl-cert ca-certificates gnupg lsb-release
Install wandio repository
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.deb.sh' | sudo -E bash
Install CAIDA repository
echo "deb https://pkg.caida.org/os/$(lsb_release -si|awk '{print tolower($0)}') $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/caida.list
sudo wget -O /etc/apt/trusted.gpg.d/caida.gpg https://pkg.caida.org/os/ubuntu/keyring.gpg
One-liner:
curl -s https://pkg.caida.org/os/$(lsb_release -si|awk '{print tolower($0)}')/bootstrap.sh | bash
1.2 Install BGPStream packages:
sudo apt update;
sudo apt-get install bgpstream
2. Installing PyBGPStream
官网安装教程:https://bgpstream.caida.org/docs/install/pybgpstream
2.1 Installing from PyPI
The simplest and recommended way to install PyBGPStream is from PyPI using pip:
pip install pybgpstream
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/162784.html