728x90
influxdb 설치
테스트 환경
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
influxdb 설치
echo "deb https://repos.influxdata.com/ubuntu focal stable" | tee /etc/apt/sources.list.d/influxdb.list
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
apt update
apt install -y influxdb
systemctl enable --now influxdb
ps -ef | grep -v grep | grep influxd
$ ps -ef | grep -v grep | grep influxd
influxdb 2192 1 0 05:36 ? 00:00:00 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
netstat -nlpt | grep influxd
$ netstat -nlpt | grep influxd
tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN 2192/influxd
tcp6 0 0 :::8086 :::* LISTEN 2192/influxd
influxdb version 정보
influxd version
$ influxd version
InfluxDB v1.8.10 (git: 1.8 688e697c51fd)
influx -version
$ influx -version
InfluxDB shell version: 1.8.10
curl -G -i http://localhost:8086/query -u anonymous:anonymous --data-urlencode "db=dbname" --data-urlencode "q=SHOW MEASUREMENTS"
$ curl -G -i http://localhost:8086/query -u anonymous:anonymous --data-urlencode "db=dbname" --data-urlencode "q=SHOW MEASUREMENTS"
HTTP/1.1 200 OK
Content-Type: application/json
Request-Id: 758f7849-fcee-11ec-8003-080027cd010a
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.8.10
X-Request-Id: 758f7849-fcee-11ec-8003-080027cd010a
Date: Wed, 06 Jul 2022 05:42:44 GMT
Transfer-Encoding: chunked
{"results":[{"statement_id":0}]}
728x90
'리눅스' 카테고리의 다른 글
[리눅스] grafana 설치 (0) | 2022.07.06 |
---|---|
[리눅스] telegraf 설치 (0) | 2022.07.06 |
[리눅스] influxdb 설치 (0) | 2022.07.06 |
[리눅스] elasticsearch TLS 암호화 및 HTTPS 활성화 (0) | 2022.07.05 |
[리눅스] Elasticsearch 업그레이드(Elasticsearche rpm install on CentOS 7) (0) | 2022.07.03 |
[리눅스] Elasticsearch Snapshot and Restore (0) | 2022.06.23 |