一、基于Docker Compose部署ElasticView
1、Docker安装
参考:https://www.cnblogs.com/a120608yby/p/9883175.html
2、Docker Compose安装
参考:https://www.cnblogs.com/a120608yby/p/14582853.html
3、服务配置文件
# vim docker-compose.yaml version: '3.8' services: elasticview: image: kecikeci/elastic_view:latest container_name: elasticview restart: unless-stopped ports: - 8090:8090 networks: - ops_default volumes: - ./data:/data networks: ops_default: external: true
4、服务启动
docker-compose up -d
5、查看服务启动状态
docker-compose ps
二、基于二进制包部署ElasticView
1、下载并解压
# 下载 wget https://github.com/1340691923/ElasticView/releases/download/v1.8.7/ElasticViewLinux.zip # 解压 mkdir -p /opt/ElasticView unzip /usr/local/src/ElasticViewLinux.zip -d /opt/ElasticView mv /opt/ElasticView/ElasticViewLinux /opt/ElasticView/ElasticView chmod +x ElasticView
2、创建服务启动
# vim /etc/systemd/system/elasticview.service [Unit] Description=ElasticView Service After=network.target [Service] Type=simple WorkingDirectory=/opt/ElasticView ExecStart=/opt/ElasticView/ElasticView Restart=always [Install] WantedBy=multi-user.target
3、启动服务
systemctl daemon-reload systemctl enable elasticview --now
三、访问
访问地址:http://部署主机IP:8090 默认账号:admin 默认密码:admin
参考:
https://github.com/1340691923/ElasticView