文章目录
- 1. 解压
- 2. 一键安装
- 3. 修改执行器py地址
- 4. 一键启动
- 5. 查看启动日志
- 6. 访问地址+登录
- 7. 操作记录
1. 解压
tar -zxvf datax-web-2.1.2.tar.gz
2. 一键安装
# 执行一键安装脚本,系统中需要有mysql环境,会自动执行sql文件初始化bin/install.sh
cd datax-web-2.1.2/
bin/install.sh
3. 修改执行器py地址
# 修改执行器py地址
vim datax-web-2.1.2/modules/datax-executor/bin/env.propertiesPYTHON_PATH=/app/datax/bin/datax.py
4. 一键启动
cd datax-web-2.1.2/
bin/start-all.sh
5. 查看启动日志
# 查看启动日志
[root@localhost datax-web-2.1.2]# cat datax-web-2.1.2/modules/datax-admin/bin/console.out
6. 访问地址+登录
http://IP地址:9527/index.html
Local-API: http://192.xxx.xxx.xxx:9527/doc.html
External-API: http://192.xxx.xxx.xxx:9527/doc.html
web-URL: http://192.xxx.xxx.xxx:9527/index.html默认管理员用户名:admin 密码:123456
7. 操作记录
# 安装记录
[root@localhost app]# cd datax-web-2.1.2/
[root@localhost datax-web-2.1.2]# bin/install.sh
2021-06-23 20:28:32.591 [INFO] (4264) Creating directory: [/app/datax-web-2.1.2/bin/../modules].
2021-06-23 20:28:32.600 [INFO] (4264) ####### Start To Uncompress Packages ######
2021-06-23 20:28:32.606 [INFO] (4264) Uncompressing....
Do you want to decompress this package: [datax-admin_2.1.2_1.tar.gz]? (Y/N)Y
2021-06-23 20:28:35.146 [INFO] (4264) Uncompress package: [datax-admin_2.1.2_1.tar.gz] to modules directory
Do you want to decompress this package: [datax-executor_2.1.2_1.tar.gz]? (Y/N)Y # 是否解压datax-executor_2.1.2_1.tar.gz
2021-06-23 20:28:38.606 [INFO] (4264) Uncompress package: [datax-executor_2.1.2_1.tar.gz] to modules directory
2021-06-23 20:28:38.983 [INFO] (4264) ####### Finish To Umcompress Packages ######
Scan modules directory: [/app/datax-web-2.1.2/bin/../modules] to find server under dataxweb
2021-06-23 20:28:38.993 [INFO] (4264) ####### Start To Install Modules ######
2021-06-23 20:28:39.000 [INFO] (4264) Module servers could be installed:[datax-admin] [datax-executor]
Do you want to confiugre and install [datax-admin]? (Y/N)Y
2021-06-23 20:28:40.504 [INFO] (4264) Install module server: [datax-admin]
Start to make directory
2021-06-23 20:28:40.556 [INFO] (4305) Start to build directory
2021-06-23 20:28:40.564 [INFO] (4305) Creating directory: [/app/datax-web-2.1.2/modules/datax-admin/bin/../logs].
2021-06-23 20:28:40.645 [INFO] (4305) Directory or file: [/app/datax-web-2.1.2/modules/datax-admin/bin/../conf] has been exist
2021-06-23 20:28:40.650 [INFO] (4305) Creating directory: [/app/datax-web-2.1.2/modules/datax-admin/bin/../data].
end to make directory
Start to initalize database
2021-06-23 20:28:40.738 [INFO] (4305) Scan out mysql command, so begin to initalize the database
Do you want to initalize database with sql: [/app/datax-web-2.1.2/bin/db/datax_web.sql]? (Y/N)Y
Please input the db host(default: 127.0.0.1):
Please input the db port(default: 3306):
Please input the db username(default: root):
Please input the db password(default: ): 123456
Please input the db name(default: dataxweb)
mysql: [Warning] Using a password on the command line interface can be insecure.
Do you want to confiugre and install [datax-executor]? (Y/N)Y
2021-06-23 20:28:53.985 [INFO] (4264) Install module server: [datax-executor]
2021-06-23 20:28:54.039 [INFO] (4355) Start to build directory
2021-06-23 20:28:54.045 [INFO] (4355) Creating directory: [/app/datax-web-2.1.2/modules/datax-executor/bin/../logs].
2021-06-23 20:28:54.129 [INFO] (4355) Directory or file: [/app/datax-web-2.1.2/modules/datax-executor/bin/../conf] has been exist
2021-06-23 20:28:54.134 [INFO] (4355) Creating directory: [/app/datax-web-2.1.2/modules/datax-executor/bin/../data].
2021-06-23 20:28:54.216 [INFO] (4355) Creating directory: [/app/datax-web-2.1.2/modules/datax-executor/bin/../json].
2021-06-23 20:28:54.291 [INFO] (4264) ####### Finish To Install Modules ####### 修改执行器py地址
[root@localhost datax-web-2.1.2]# vim modules/datax-executor/bin/env.properties # 启动记录:
[root@localhost datax-web-2.1.2]# bin/start-all.sh
2021-06-23 20:44:25.429 [INFO] (5663) Try To Start Modules In Order
2021-06-23 20:44:25.444 [INFO] (5671) ####### Begin To Start Module: [datax-admin] ######
2021-06-23 20:44:25.462 [INFO] (5679) load environment variables
2021-06-23 20:44:25.912 [INFO] (5679) java
2021-06-23 20:44:25.919 [INFO] (5679) Waiting DATAX-ADMIN to start complete ...
2021-06-23 20:44:26.193 [INFO] (5679) DATAX-ADMIN start success
2021-06-23 20:44:26.211 [INFO] (5886) ####### Begin To Start Module: [datax-executor] ######
2021-06-23 20:44:26.228 [INFO] (5894) load environment variables
2021-06-23 20:44:26.887 [INFO] (5894) java
2021-06-23 20:44:26.893 [INFO] (5894) Waiting DATAX-EXEXUTOR to start complete ...
2021-06-23 20:44:27.334 [INFO] (5894) DATAX-EXEXUTOR start success# 查看启动日志
[root@localhost datax-web-2.1.2]# cat modules/datax-admin/bin/console.out