Linux 软件包仓库

导航至

警告!以下说明已不再有效。请参阅产品文档以获取更新的说明。

今天,我们正式宣布 InfluxData 软件包仓库。此软件包仓库可用于 Ubuntu、Debian、RedHat 和 CentOS Linux 软件包管理系统,更多发行版和操作系统即将推出。您现在可以自动下载和安装最新的 InfluxData 版本。此外,所有版本都经过 GPG 签名,确保所有软件包在安装前都经过验证且安全。

配置

要开始使用,请按照以下适用于您选择的 Linux 发行版的说明进行操作

CentOS 用户

目前仅支持 CentOS 6 和 7 版本。要添加 InfluxData 仓库,请以管理员/root 用户身份复制并粘贴以下内容到终端中

cat <<EOF | tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/centos/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

添加 InfluxData 仓库后,您可以使用以下命令安装 InfluxDB 的最新稳定版本

yum install influxdb

以及移除 InfluxDB

yum remove influxdb

RedHat 企业 Linux 用户

与 CentOS 一样,目前仅支持 RHEL 6 和 7 版本。要添加 InfluxData 仓库,请以管理员/root 用户身份复制并粘贴以下内容到终端中

cat <<EOF | tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

添加 InfluxData 仓库后,您可以使用以下命令安装 InfluxDB 的最新稳定版本

yum install influxdb

以及移除 InfluxDB

yum remove influxdb

Ubuntu 用户

对于 Ubuntu,目前支持 12.04 (Precise)、14.04 (Trusty)、14.10 (Utopic) 和 15.04 (Vivid) 版本。要添加 InfluxData 仓库,请以管理员/root 用户身份复制并粘贴以下内容到终端中

curl -sL https://repos.influxdata.com/influxdb.key | apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | tee -a /etc/apt/sources.list

添加 InfluxData 仓库后,您可以使用以下命令安装 InfluxDB 的最新稳定版本

apt-get update
apt-get install influxdb

以及移除 InfluxDB

apt-get remove influxdb

Debian 用户

对于 Debian,目前支持 Jessie 和 Wheezy 版本。要添加 InfluxData 仓库,请以管理员/root 用户身份复制并粘贴以下内容到终端中

curl -sL https://repos.influxdata.com/influxdb.key | apt-key add -
source /etc/os-release
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | tee -a /etc/apt/sources.list
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | tee -a /etc/apt/sources.list

添加 InfluxData 仓库后,您可以使用以下命令安装 InfluxDB 的最新稳定版本

apt-get update
apt-get install influxdb

以及移除 InfluxDB

apt-get remove influxdb

下一步

就是这样!应用上述配置后,您的系统将能够自动安装和升级到当前和未来发布的 InfluxDB(和其他 InfluxData 应用程序)稳定版本。当然,如果您遇到任何问题,请随时通过 [email protected] 联系我们。

没有看到您在此处列出的发行版?在 Github 上创建一个 issue,我们会尽力将其添加到仓库中。