# InfluxDB2 **Repository Path**: cn0512/InfluxDB2 ## Basic Information - **Project Name**: InfluxDB2 - **Description**: influxDB源码编译方法 - **Primary Language**: Go - **License**: MulanPSL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-03-17 - **Last Updated**: 2025-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # InfluxDB2 #### 介绍 1. influxDB源码编译方法 1. 本文针对influxDB v2 版本 #### 环境 linux centos7 #### 准备 1. git clone https://github.com/influxdata/influxdb.git 2. gcc 3. protoc 4. clang 5. rust 6. go 7. root权限 #### go 3.x版本 1. yum install golang #### clang 1. yum install clang clang-devel -y #### gcc 1. yum -y install gcc gcc-c++ kernel-devel #### protoc 1. tar zvxf protobuf-all-3.6.1.tar.gz 2. cd protobuf-3.6.1 3. ./configure –prefix=/usr/local/ 4. sudo make 5. sudo make check 6. sudo make install #### rust 1. curl -sSf https://mirrors.ustc.edu.cn/rust-static/rustup.sh | sh -s 2. export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static 3. export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup #### 检查并更新到最新系统时间(很重要) systemctl restart ntpd.service #### 编译 make clean make #### 输出路径 ./bin/linux #### 启动 ./influxd #### lastest chrome 访问 http://localhost:9999 #### 下一节:UI系统二次开发