bytehound centos 7构建说明

bytehound已经提供了相关的包,但是因为依赖的glib 版本比较高,低版本的centos 不能运行(比如centos7),所以自己构建了一个版本的

准备

使用centos-release-scl, 当然还需要rust 可以先安装好,同时还需要node(需要yarn)

yum -y install centos-release-scl
yum install  -y devtoolset-7-gcc*

构建

  • clone 代码
git clone  https://github.com/koute/bytehound.git
  • 一些修改
    注意默认同时会构建前端,但是有些问题,解决方法是先自己构建webui, 然后删除server-core/build.rs 中关于删除dist 目录的
  • 构建
    注意构建和机器资源有关系,会比较慢
 
scl enable devtoolset-7 bash
cd bytehound
cargo build --release -p bytehound-preload
cargo build --release -p bytehound-cli  

说明

以上是关于bytehound centos 7构建的一些说明,后边会介绍一些使用相关的

参考资料

https://linux.die.net/man/8/ld.so
https://koute.github.io/bytehound/introduction.html
https://github.com/koute/bytehound
https://github.com/rongfengliang/bytehound-package/releases/tag/v0.11.0

posted on 2023-05-01 12:31  荣锋亮  阅读(61)  评论(3编辑  收藏  举报

导航