zgwldrc commented on issue #17251: URL: https://github.com/apache/dolphinscheduler/issues/17251#issuecomment-2968967983
1. 下载了apache-dolphinscheduler-3.2.0-bin.tar.gz 2. 解压至目录/data/dolphinscheduler/3.2.0 3. 生成了以下systemd启动文件 ```zsh [ec2-user@ip-10-3-99-235 3.2.0]$ cat /etc/systemd/system/dolphinscheduler-api.service [Unit] Description="dolphinscheduler api-server 3.2.0" Requires=network-online.target After=network-online.target [Service] EnvironmentFile=-/data/dolphinscheduler/3.2.0/.env User=ec2-user Group=ec2-user WorkingDirectory=/data/dolphinscheduler/3.2.0 ExecStart=/data/dolphinscheduler/3.2.0/api-server/bin/start.sh Restart=no StartLimitInterval=10 StartLimitBurst=5 LimitNOFILE=65536 [Install] WantedBy=multi-user.target ``` #### .env文件内容 JAVA_HOME=/data/jdk/11.0.25 api-server目录 ```zsh eza -l -T api-server/ -I libs -L 2 drwxr-xr-x@ - ec2-user 17 Feb 2022 api-server drwxr-xr-x@ - ec2-user 9 Jun 05:09 ├── bin .rwxr-xr-x@ 1.0k ec2-user 17 Feb 2022 │ ├── jvm_args_env.sh .rwxr-xr-x@ 1.5k ec2-user 17 Feb 2022 │ └── start.sh drwxr-xr-x@ - ec2-user 12 Jun 08:08 ├── conf .rw-r--r--@ 7.4k ec2-user 17 Feb 2022 │ ├── application.yaml .rw-r--r--@ 987 ec2-user 17 Feb 2022 │ ├── bootstrap.yaml .rw-r--r--@ 9.8k ec2-user 12 Jun 08:07 │ ├── common.properties .rw-r--r--@ 2.2k ec2-user 12 Jun 08:08 │ ├── dolphinscheduler_env.sh .rw-r--r--@ 1.4k ec2-user 17 Feb 2022 │ ├── dynamic-task-type-config.yaml .rw-r--r--@ 2.5k ec2-user 17 Feb 2022 │ ├── logback-spring.xml .rw-r--r--@ 912 ec2-user 17 Feb 2022 │ ├── swagger.properties .rw-r--r--@ 1.5k ec2-user 17 Feb 2022 │ └── task-type-config.yaml drwxr-xr-x@ - ec2-user 9 Jun 05:09 └── ui drwxr-xr-x@ - ec2-user 9 Jun 05:09 ├── assets .rw-r--r--@ 4.3k ec2-user 17 Feb 2022 ├── favicon.ico drwxr-xr-x@ - ec2-user 17 Feb 2022 ├── images .rw-r--r--@ 1.5k ec2-user 17 Feb 2022 ├── index.html .rw-r--r--@ 74k ec2-user 17 Feb 2022 ├── lodash.min.js .rw-r--r--@ 26k ec2-user 17 Feb 2022 └── lodash.min.js.gz ``` 修改了conf/dolphinscheduler_env.sh 内容如下 ```zsh export JAVA_HOME="/data/jdk/11.0.25" # Database related configuration, set database type, username and password export DATABASE="mysql" export SPRING_PROFILES_ACTIVE="mysql" export SPRING_DATASOURCE_URL="jdbc:mysql://<db_host>:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8" export SPRING_DATASOURCE_USERNAME="dolphinscheduler" export SPRING_DATASOURCE_PASSWORD="<password>" # Registry center configuration, determines the type and link of the registry center export REGISTRY_TYPE="zookeeper" export REGISTRY_ZOOKEEPER_CONNECT_STRING="<zk_host>:2181" export PATH="/data/jdk/11.0.25/bin:$PATH" ``` #### 启动指令 ```zsh sudo systemctl start dolphinscheduler-api.service ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
