下载二进制部署
通过下载预编译的二进制文件是最简单的部署 ElasticView 的方式。
最新版本及下载
动态获取最新版本
如果上方无法加载版本信息,您也可以从以下地址下载最新版本的 ElasticView:
- GitHub Releases: https://github.com/1340691923/ElasticView/releases
- 码云 Releases: https://gitee.com/cynthia520/elastic-view/releases
部署步骤
- 选择适合您操作系统的压缩包并下载(支持 Windows、Linux、macOS 等系统)
- 解压下载的文件到一个合适的目录
- 进入解压后的目录
- 运行可执行文件启动 ElasticView
Windows
cmd
# 运行应用
ev_windows_amd64.exe
Linux/macOS
bash
# 设置可执行权限
chmod +x ev_linux_amd64 # 或 ev_darwin_amd64
# 运行应用
./ev_linux_amd64 # 或 ./ev_darwin_amd64
首次登录
启动应用后,打开浏览器访问 http://localhost:8090
登录信息:
- 用户名:
admin
- 密码:
admin
登录后,请前往插件市场下载对应插件。
部署成功验证
当您在服务器控制台看到以下输出时,说明 ElasticView 已经成功启动:
这表示:
- ElasticView 服务已经正常启动
- Web 服务器正在监听端口 8090
- 系统已准备好接受用户连接
此时您就可以通过浏览器访问 http://localhost:8090 开始使用 ElasticView 了。
提升访问速度 - Nginx 配置
如果需要通过 Nginx 代理 ElasticView 以提高访问速度,可以参考以下配置:
nginx
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name demo.elastic-view.cn;
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
underscores_in_headers on;
client_max_body_size 1024m;
location / {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Host $proxy_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 3600s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
send_timeout 3600s;
}
location /ws {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_connect_timeout 3600s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
send_timeout 3600s;
}
}