陈述:
hadoopu组下的hadoop用户
安装方式使用.tar包的方式安装各个组件
本次安装的服务器的主机名: hadoop03local
安装目录/opt/modules/
1.Prometheus-2.32.1
默认占用9090端口
hadoop用户
----------
官网下载linux https://prometheus.io/download/ #并上传到安装目录
tar -zxvf prometheus-2.32.1.linux-amd64.tar.gz # 解压
# 解压后,在/prometheus-2.32.1.linux-amd64/ 文件夹下就会可运行的命令
mv /opt/modules/prometheus-2.32.1.linux-amd64 /opt/modules/prometheus # 重命名
./prometheus --config.file="/opt/modules/prometheus/prometheus.yml" & #启动Prometheus
# 注:&符号为连接符,代表后台运行,不占用终端窗口
2.Grafana-8.3.3
默认占用3000端口
hadoop用户
----------
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.3.linux-amd64.tar.gz # 下载
-- 安装包准备好的,可直接解压
tar -zxvf grafana-enterprise-8.3.3.linux-amd64.tar.gz # 解压
nohup /opt/modules/grafana-8.3.3/bin/grafana-server & #可直接启动grafana
/grafana-8.3.3/conf/defaults.ini # 若端口有冲突可在这个文件中修改绑定的端口
http://hadoop03local:3000/login
初次登录的用户名和密码均为 :admin
登陆后会要求更改admin的密码
登陆后的样子如下图所示:
grafana 线上集群已经有了,这里安装在本地,便于测试
3.Influxdb-1.8.10
默认会占用 8086 和8088端口
8086
: 用于客户端和服务端交互的HTTP API8088
: 用于提供备份和恢复的RPC服务
若有冲突想要改变绑定端口,更改端口操作如下:
# 列出当前使用的配置
influxd config
# 修改配置文件
vi /etc/influxdb/influxdb.conf
修改如下对应的端口号
bind-address = ":8086"
例如改为如下:
bind-address = ":8888"
service influxdb restart # 重启influxDb即可
3.1 安装
hadoop
----------
// 切换到要安装的目录
cd 安装目录
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.1.x86_64.rpm #获取rpm安装包
root
----------
yum localinstall influxdb-1.8.1.x86_64.rpm #yum安装
安装过程会创建一些文件包括influxdb的配置文件等
root
----------
systemctl status influxdb #查看influxdb状态
systemctl start influxdb #启动influxdb
systemctl status influxdb #查看状态
systemctl enable influxdb #开启开机启动
influx # 进入influxDB数据库
quit # 退出
3.2 influxdb 数据库的相关操作命令
show databases; #展示当前存在的数据库
如何使用这些组件,还在研究中。