You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
4.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 一、$DataEase$最新版本下载
```apl
https://community.fit2cloud.com/#/products/dataease/downloads
```
**在线安装**
```shell
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | sh
```
**在线升级**
```shell
dectl upgrade
```
### 二、$DataEase$发布$80$端口
#### 拉取
```shell
docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openresty/openresty:1.25.3.1-5-alpine-fat
```
#### 打标
```shell
docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openresty/openresty:1.25.3.1-5-alpine-fat docker.io/openresty/openresty:1.25.3.1-5-alpine-fat
```
#### 编辑 $nginx.conf$
```shell
vi /root/nginx.conf
```
```apl
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# DataEase 所在机器的IP
upstream dataease {
server 10.10.14.203:8100;
}
# 配置日志位置
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server {
# 监听端口
listen 80;
# 监听域名修改为你自己的域名且域名与nginx所在服务器的IP绑定
#server_name dataease.test.com;
location / {
client_max_body_size 600m;
client_body_buffer_size 128k;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
proxy_buffer_size 64k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass http://dataease;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}
```
#### 运行
```shell
mkdir /root/nginx_logs
docker run --name openresty -d -v /root/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf -v /root/nginx_logs:/var/log/nginx -p 80:80 openresty/openresty:1.25.3.1-5-alpine-fat
```
```
http://10.10.14.203/
```
### 三、配置外网访问
frpc.ini 配置在10.10.14.203
```shell
[root@dataease frp]# cat frpc.ini
[common]
server_addr = www.wmarkj.com
server_port = 7000
[dsideal_DataEaseV2]
type=tcp
local_ip=10.10.14.203
local_port=80
remote_port=27080
[dsideal_DataEaseV1]
type=tcp
local_ip=10.10.14.204
local_port=8887
remote_port=27081
```
### 四、访问方式
```xml
系统登录信息如下:
内网访问地址: http://10.10.14.203
外网访问地址http://www.wmarkj.com:27080
用户名: admin
初始密码: DataEase@123456
```
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202409131316541.png)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202409131323392.png)
在华为云上部署的DataEaseV2
117.78.60.214 52025
DsIdeal@123
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202410171024499.png)
#### $Centos$ $7.9$ $root$账号,输入$reboot$不重新启动,怎么办?
答:
```shell
yum update -y
```
然后使用在线安装,注意:不要使用离线包,离线包问题多多!
```
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | sh
```
[DataEase v2 设置动态访问路径,使用 Nginx 路径代理 - FIT2CLOUD 知识库](https://kb.fit2cloud.com/?p=57a47d64-4eda-4ae8-a0b0-4329e57b13ff)
#### 备份与还原
```
# 两个机器都要执行
service dataease stop
# 在备份的机器上执行
tar -jcv -f dataease.tar.bz2 /opt/dataease2.0
# 备份机器上启动服务
service dataease start
# 下载 dataease.tar.bz2 并在还原的机器上传
# 还原
mv /opt/dataease2.0 /opt/dataease2.0.bak
mkdir /opt/dataease2.0 -p
tar -xjf dataease.tar.bz2 -C /
# 在还原机上执行
service dataease start
```