CentOS:7源码安装zeek-创新互联
ubuntu 18.04.6:
sudo docker pull centos:7
sudo docker run -i -t centos:7 /bin/bash
docker.centos:
yum install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
yum list | grep initscripts
yum install initscripts.x86_64
docker.centos.install.ssh:
yum -y install net-tools
yum install -y openssh-clients.x86_64 openssh.x86_64
ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N ''
ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key -N ''
vi /etc/ssh/sshd_config
1.将Port 22 前面的注释去掉(开启22号端口)
2.将PermitRootLogin的no改为yes(这里是设置允许root用户登录,可根据自己需求决定是否开启)
/usr/sbin/sshd -D &
passwd root
docker.centos.install.zeek(5.0.4):
yum install libpcap-devel.x86_64
yum install python-pip python3-pip
yum install python3-devel.x86_64
./configure
make -j4(4 thread need more than 8Gb mem)
make install
docker.centos.install.cmake(3.15+):
yum install -y libxml2 libxml2-devel bzip2 bzip2-devel libcurl libcurl-devel libjpeg libjpeg-devel zstd libzstd-devel curl libpng libpng-devel
wget https://cmake.org/files/v3.21/cmake-3.21.0.tar.gz
tar -zxvf cmake-3.6.2.tar.gz
cd cmake-3.21.0
查看README.rst
./bootstrap && make && sudo make install
docker.centos.install.gcc-g++(least 7.0 for C++17):
yum install -y bzip2
tar xvf gcc-8.4.0.tar.gz
cd gcc-8.4.0
./contrib/download_prerequisites
mkdir build
cd build
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j8
make install
yum install centos-release-scl
yum install devtoolset-8-gcc*
scl enable devtoolset-8 bash
docker.centos.install.gcc-g++:
yum install gcc gcc-c++
ssl:
yum -y install ncurses-devel
yum install openssl-devel
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
名称栏目:CentOS:7源码安装zeek-创新互联
分享URL:http://azwzsj.com/article/depogd.html