main
黄海 9 months ago
parent e005aad5ce
commit 2d84dafc86

@ -22,15 +22,17 @@ dectl upgrade
### 二、$DataEase$发布$80$端口
### 二、$DataEase$发布
#### 拉取
#### 1、$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
@ -38,7 +40,7 @@ docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openresty/openres
#### 编辑 $nginx.conf$
##### 编辑 $nginx.conf$
```shell
vi /root/nginx.conf
@ -94,16 +96,14 @@ http {
}
```
#### 运行
##### 运行
```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
```
#### 如果不想按/进行发布,而是想采用$/dataease/$进行发布的话
#### 2、用$/dataease/$发布
> 参考:[DataEase v2 设置动态访问路径,使用 Nginx 路径代理 - FIT2CLOUD 知识库](https://kb.fit2cloud.com/?p=57a47d64-4eda-4ae8-a0b0-4329e57b13ff)
@ -125,8 +125,6 @@ server:
echo 'DE_CONTEXT_PATH=/dataease' >> /opt/dataease2.0/.env
```
### 三、访问方式
```xml
@ -140,10 +138,12 @@ echo 'DE_CONTEXT_PATH=/dataease' >> /opt/dataease2.0/.env
在华为云上部署的$DataEaseV2$
**华为云部署主机的账号**
```
117.78.60.214 52025
117.78.60.214
52025
root
DsIdeal@123
```
@ -199,19 +199,39 @@ service dataease start
# 数据库用户名和密码
### 六、运维
##### 数据库用户名和密码
```
username: root
password: Password123@mysql
```
##### 停止
# 停止
```
dectl stop
```
##### 修改$Mysql$可以使用局域网$IP$访问
# 修改
```shell
vi /opt/dataease2.0/docker-compose-mysql.yml
```
添加
```
ports:
- "0.0.0.0:3306:3306"
- "0.0.0.0:3306:3306"
```
完整文件
```yaml
version: '3'
services:
@ -219,37 +239,36 @@ services:
image: registry.cn-qingdao.aliyuncs.com/dataease/mysql:8.4.0
container_name: ${DE_MYSQL_HOST}
ports:
- "0.0.0.0:3306:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u${DE_MYSQL_USER}", "-p${DE_MYSQL_PASSWORD}", "--protocol","tcp"]
interval: 5s
timeout: 3s
retries: 10
env_file:
- ${DE_BASE}/dataease2.0/conf/mysql.env
volumes:
- ${DE_BASE}/dataease2.0/conf/my.cnf:/etc/mysql/conf.d/my.cnf
- ${DE_BASE}/dataease2.0/bin/mysql:/docker-entrypoint-initdb.d/
- ${DE_BASE}/dataease2.0/data/mysql:/var/lib/mysql
networks:
- dataease-network
# 启动这样才能按mysql->dataease 顺序去启动
dectl start
# 效果
[root@dataease local]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6e5f02dbb554 registry.cn-qingdao.aliyuncs.com/dataease/dataease:v2.10.1 "/deployments/run-ja…" About a minute ago Up 59 seconds (healthy) 0.0.0.0:8100->8100/tcp, :::8100->8100/tcp dataease
d88b1f233e0c registry.cn-qingdao.aliyuncs.com/dataease/mysql:8.4.0 "docker-entrypoint.s…" About a minute ago Up About a minute (healthy) 0.0.0.0:3306->3306/tcp, 33060/tcp mysql-de
0258d16d5904 openresty/openresty:1.25.3.1-5-alpine-fat "/usr/local/openrest…" 2 weeks ago Up 6 days 0.0.0.0:80->80/tcp, :::80->80/tcp openresty
[root@dataease local]#
- "0.0.0.0:3306:3306"
althcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u${DE_MYSQL_USER}", "-p${DE_MYSQL_PASSWORD}", "--protocol","tcp"]
interval: 5s
timeout: 3s
retries: 10
env_file:
- ${DE_BASE}/dataease2.0/conf/mysql.env
lumes:
- ${DE_BASE}/dataease2.0/conf/my.cnf:/etc/mysql/conf.d/my.cnf
${DE_BASE}/dataease2.0/bin/mysql:/docker-entrypoint-initdb.d/
- ${DE_BASE}/dataease2.0/data/mysql:/var/lib/mysql
tworks:
- dataease-network
```
启动这样才能按mysql->dataease 顺序去启动
##### 启动
```
dectl start
```
##### 查询数据表
# 查询数据表
```sql
-- 数据源表
-- core_datasource
select * from core_datasource where name like '%岐山%';
@ -262,71 +281,6 @@ select table_name from core_dataset_table where dataset_group_id='1034544942506
-- 查询或者修改
select * from `excel_人口变化趋势_e1c9395feb`
java.lang.reflect.InvocationTargetException
# 移除docker旧版本
docker version
yum -y remove docker*
# 安装依赖
yum install -y yum-utils device-mapper-persistent-data lvm2
# 安装源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# 查看最新版本
yum list docker-ce --showduplicates | sort -r
docker-ce.x86_64 3:26.1.4-1.el7 docker-ce-stable
# 安装最新版本
yum install docker-ce-26.1.4-1.el7 -y
默认安装的是最高版本 25.0.3-1.el7
yum -y install docker-ce-25.0.3-1.el7
注:版本号是 25.0.3-1.el7 而非 3:25.0.3-1.el7
# 在线安装dataease v2
curl -sSL https://dataease.oss-cn-hangzhou.aliyuncs.com/quick_start_v2.sh | sh
cd /opt/dataease2.0/conf
vi application.yml
```
server:
tomcat:
connection-timeout: 70000
servlet:
context-path: /dataease
```
cd ..
vi .env
最后一行增加:
DE_CONTEXT_PATH=/dataease
# 重新启动
dectl restart
默认用户名 admin
密码 DataEase@123456
# 访问报异常RSA ERROR,怀疑是因为https证书导致通过实验验证一下
http://www.wmarkj.com:28100/dataease
可以正常进行说明我的迁移工作是没有问题的问题出在www.edusoa.com 的https证书上
# 在备份机上执行
dectl backup
# 将生成的文件拷贝到目标机上
# 在目标机上执行
dectl restore

Loading…
Cancel
Save