From 057a9f6b241bae28ea5ec6d8e1e082b64f6410f3 Mon Sep 17 00:00:00 2001 From: Luke Yan <108530647+lukeyan2023@users.noreply.github.com> Date: Sat, 9 Jul 2022 15:41:56 +0800 Subject: [PATCH] [Fix-10830][Doc] Change the start or install script command sh in the document to bash (#10831) * Change sh to bash Change the script execution command sh to bash * Change sh to bash Change the script execution command sh to bash * Change sh to bash Change the script execution command sh to bash * Change sh to bash Change the script execution command sh to bash * Change sh to bash Co-authored-by: luke --- docs/docs/en/guide/expansion-reduction.md | 32 +++++++++---------- .../docs/en/guide/howto/datasource-setting.md | 2 +- .../en/guide/installation/pseudo-cluster.md | 22 ++++++------- docs/docs/en/guide/installation/standalone.md | 6 ++-- docs/docs/zh/guide/expansion-reduction.md | 32 +++++++++---------- .../docs/zh/guide/howto/datasource-setting.md | 2 +- .../zh/guide/installation/pseudo-cluster.md | 22 ++++++------- docs/docs/zh/guide/installation/standalone.md | 6 ++-- 8 files changed, 62 insertions(+), 62 deletions(-) diff --git a/docs/docs/en/guide/expansion-reduction.md b/docs/docs/en/guide/expansion-reduction.md index 309ac6418b..f7cd12e589 100644 --- a/docs/docs/en/guide/expansion-reduction.md +++ b/docs/docs/en/guide/expansion-reduction.md @@ -137,19 +137,19 @@ sudo chown -R dolphinscheduler:dolphinscheduler dolphinscheduler bin/stop-all.sh # stop all services -sh bin/dolphinscheduler-daemon.sh stop master-server # stop master service -sh bin/dolphinscheduler-daemon.sh stop worker-server # stop worker service -sh bin/dolphinscheduler-daemon.sh stop api-server # stop api service -sh bin/dolphinscheduler-daemon.sh stop alert-server # stop alert service +bash bin/dolphinscheduler-daemon.sh stop master-server # stop master service +bash bin/dolphinscheduler-daemon.sh stop worker-server # stop worker service +bash bin/dolphinscheduler-daemon.sh stop api-server # stop api service +bash bin/dolphinscheduler-daemon.sh stop alert-server # stop alert service # start command:: bin/start-all.sh # start all services -sh bin/dolphinscheduler-daemon.sh start master-server # start master service -sh bin/dolphinscheduler-daemon.sh start worker-server # start worker service -sh bin/dolphinscheduler-daemon.sh start api-server # start api service -sh bin/dolphinscheduler-daemon.sh start alert-server # start alert service +bash bin/dolphinscheduler-daemon.sh start master-server # start master service +bash bin/dolphinscheduler-daemon.sh start worker-server # start worker service +bash bin/dolphinscheduler-daemon.sh start api-server # start api service +bash bin/dolphinscheduler-daemon.sh start alert-server # start alert service ``` @@ -194,19 +194,19 @@ There are two steps for shrinking. After performing the following two steps, the # stop command: bin/stop-all.sh # stop all services -sh bin/dolphinscheduler-daemon.sh stop master-server # stop master service -sh bin/dolphinscheduler-daemon.sh stop worker-server # stop worker service -sh bin/dolphinscheduler-daemon.sh stop api-server # stop api service -sh bin/dolphinscheduler-daemon.sh stop alert-server # stop alert service +bash bin/dolphinscheduler-daemon.sh stop master-server # stop master service +bash bin/dolphinscheduler-daemon.sh stop worker-server # stop worker service +bash bin/dolphinscheduler-daemon.sh stop api-server # stop api service +bash bin/dolphinscheduler-daemon.sh stop alert-server # stop alert service # start command: bin/start-all.sh # start all services -sh bin/dolphinscheduler-daemon.sh start master-server # start master service -sh bin/dolphinscheduler-daemon.sh start worker-server # start worker service -sh bin/dolphinscheduler-daemon.sh start api-server # start api service -sh bin/dolphinscheduler-daemon.sh start alert-server # start alert service +bash bin/dolphinscheduler-daemon.sh start master-server # start master service +bash bin/dolphinscheduler-daemon.sh start worker-server # start worker service +bash bin/dolphinscheduler-daemon.sh start api-server # start api service +bash bin/dolphinscheduler-daemon.sh start alert-server # start alert service ``` diff --git a/docs/docs/en/guide/howto/datasource-setting.md b/docs/docs/en/guide/howto/datasource-setting.md index aceb143493..6f285f8a21 100644 --- a/docs/docs/en/guide/howto/datasource-setting.md +++ b/docs/docs/en/guide/howto/datasource-setting.md @@ -64,7 +64,7 @@ export SPRING_DATASOURCE_PASSWORD={password} After the above steps done you would create a new database for DolphinScheduler, then run the Shell script to init database: ```shell -sh tools/bin/upgrade-schema.sh +bash tools/bin/upgrade-schema.sh ``` ## DataSource Center diff --git a/docs/docs/en/guide/installation/pseudo-cluster.md b/docs/docs/en/guide/installation/pseudo-cluster.md index 52b8ca45b6..0190c78f06 100644 --- a/docs/docs/en/guide/installation/pseudo-cluster.md +++ b/docs/docs/en/guide/installation/pseudo-cluster.md @@ -149,7 +149,7 @@ Follow the instructions in [datasource-setting](../howto/datasource-setting.md) Use **deployment user** you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder. ```shell -sh ./bin/install.sh +bash ./bin/install.sh ``` > **_Note:_** For the first time deployment, there maybe occur five times of `sh: bin/dolphinscheduler-daemon.sh: No such file or directory` in the terminal, @@ -163,26 +163,26 @@ Access address `http://localhost:12345/dolphinscheduler/ui` and login DolphinSch ```shell # Stop all DolphinScheduler server -sh ./bin/stop-all.sh +bash ./bin/stop-all.sh # Start all DolphinScheduler server -sh ./bin/start-all.sh +bash ./bin/start-all.sh # Start or stop DolphinScheduler Master -sh ./bin/dolphinscheduler-daemon.sh stop master-server -sh ./bin/dolphinscheduler-daemon.sh start master-server +bash ./bin/dolphinscheduler-daemon.sh stop master-server +bash ./bin/dolphinscheduler-daemon.sh start master-server # Start or stop DolphinScheduler Worker -sh ./bin/dolphinscheduler-daemon.sh start worker-server -sh ./bin/dolphinscheduler-daemon.sh stop worker-server +bash ./bin/dolphinscheduler-daemon.sh start worker-server +bash ./bin/dolphinscheduler-daemon.sh stop worker-server # Start or stop DolphinScheduler Api -sh ./bin/dolphinscheduler-daemon.sh start api-server -sh ./bin/dolphinscheduler-daemon.sh stop api-server +bash ./bin/dolphinscheduler-daemon.sh start api-server +bash ./bin/dolphinscheduler-daemon.sh stop api-server # Start or stop Alert -sh ./bin/dolphinscheduler-daemon.sh start alert-server -sh ./bin/dolphinscheduler-daemon.sh stop alert-server +bash ./bin/dolphinscheduler-daemon.sh start alert-server +bash ./bin/dolphinscheduler-daemon.sh stop alert-server ``` > **_Note1:_**: Each server have `dolphinscheduler_env.sh` file in path `/conf/dolphinscheduler_env.sh` which diff --git a/docs/docs/en/guide/installation/standalone.md b/docs/docs/en/guide/installation/standalone.md index 728a2c8a95..0889c4c765 100644 --- a/docs/docs/en/guide/installation/standalone.md +++ b/docs/docs/en/guide/installation/standalone.md @@ -22,7 +22,7 @@ There is a standalone startup script in the binary compressed package, which can # Extract and start Standalone Server tar -xvzf apache-dolphinscheduler-*-bin.tar.gz cd apache-dolphinscheduler-*-bin -sh ./bin/dolphinscheduler-daemon.sh start standalone-server +bash ./bin/dolphinscheduler-daemon.sh start standalone-server ``` ### Login DolphinScheduler @@ -35,9 +35,9 @@ The script `./bin/dolphinscheduler-daemon.sh`can be used not only quickly start ```shell # Start Standalone Server -sh ./bin/dolphinscheduler-daemon.sh start standalone-server +bash ./bin/dolphinscheduler-daemon.sh start standalone-server # Stop Standalone Server -sh ./bin/dolphinscheduler-daemon.sh stop standalone-server +bash ./bin/dolphinscheduler-daemon.sh stop standalone-server ``` > Note: Python gateway service is started along with the api-server, and if you do not want to start Python gateway diff --git a/docs/docs/zh/guide/expansion-reduction.md b/docs/docs/zh/guide/expansion-reduction.md index 3467581d3d..35faa15db0 100644 --- a/docs/docs/zh/guide/expansion-reduction.md +++ b/docs/docs/zh/guide/expansion-reduction.md @@ -136,19 +136,19 @@ sudo chown -R dolphinscheduler:dolphinscheduler dolphinscheduler 停止命令: bin/stop-all.sh 停止所有服务 -sh bin/dolphinscheduler-daemon.sh stop master-server 停止 master 服务 -sh bin/dolphinscheduler-daemon.sh stop worker-server 停止 worker 服务 -sh bin/dolphinscheduler-daemon.sh stop api-server 停止 api 服务 -sh bin/dolphinscheduler-daemon.sh stop alert-server 停止 alert 服务 +bash bin/dolphinscheduler-daemon.sh stop master-server 停止 master 服务 +bash bin/dolphinscheduler-daemon.sh stop worker-server 停止 worker 服务 +bash bin/dolphinscheduler-daemon.sh stop api-server 停止 api 服务 +bash bin/dolphinscheduler-daemon.sh stop alert-server 停止 alert 服务 启动命令: bin/start-all.sh 启动所有服务 -sh bin/dolphinscheduler-daemon.sh start master-server 启动 master 服务 -sh bin/dolphinscheduler-daemon.sh start worker-server 启动 worker 服务 -sh bin/dolphinscheduler-daemon.sh start api-server 启动 api 服务 -sh bin/dolphinscheduler-daemon.sh start alert-server 启动 alert 服务 +bash bin/dolphinscheduler-daemon.sh start master-server 启动 master 服务 +bash bin/dolphinscheduler-daemon.sh start worker-server 启动 worker 服务 +bash bin/dolphinscheduler-daemon.sh start api-server 启动 api 服务 +bash bin/dolphinscheduler-daemon.sh start alert-server 启动 alert 服务 ``` @@ -191,19 +191,19 @@ sh bin/dolphinscheduler-daemon.sh start alert-server 启动 alert 服务 停止命令: bin/stop-all.sh 停止所有服务 -sh bin/dolphinscheduler-daemon.sh stop master-server 停止 master 服务 -sh bin/dolphinscheduler-daemon.sh stop worker-server 停止 worker 服务 -sh bin/dolphinscheduler-daemon.sh stop api-server 停止 api 服务 -sh bin/dolphinscheduler-daemon.sh stop alert-server 停止 alert 服务 +bash bin/dolphinscheduler-daemon.sh stop master-server 停止 master 服务 +bash bin/dolphinscheduler-daemon.sh stop worker-server 停止 worker 服务 +bash bin/dolphinscheduler-daemon.sh stop api-server 停止 api 服务 +bash bin/dolphinscheduler-daemon.sh stop alert-server 停止 alert 服务 启动命令: bin/start-all.sh 启动所有服务 -sh bin/dolphinscheduler-daemon.sh start master-server 启动 master 服务 -sh bin/dolphinscheduler-daemon.sh start worker-server 启动 worker 服务 -sh bin/dolphinscheduler-daemon.sh start api-server 启动 api 服务 -sh bin/dolphinscheduler-daemon.sh start alert-server 启动 alert 服务 +bash bin/dolphinscheduler-daemon.sh start master-server 启动 master 服务 +bash bin/dolphinscheduler-daemon.sh start worker-server 启动 worker 服务 +bash bin/dolphinscheduler-daemon.sh start api-server 启动 api 服务 +bash bin/dolphinscheduler-daemon.sh start alert-server 启动 alert 服务 ``` diff --git a/docs/docs/zh/guide/howto/datasource-setting.md b/docs/docs/zh/guide/howto/datasource-setting.md index 8dcaf89cf9..f40c2bb3a4 100644 --- a/docs/docs/zh/guide/howto/datasource-setting.md +++ b/docs/docs/zh/guide/howto/datasource-setting.md @@ -64,7 +64,7 @@ export SPRING_DATASOURCE_PASSWORD={password} 完成上述步骤后,您已经为 DolphinScheduler 创建一个新数据库,现在你可以通过快速的 Shell 脚本来初始化数据库 ```shell -sh tools/bin/upgrade-schema.sh +bash tools/bin/upgrade-schema.sh ``` ## 数据源中心 diff --git a/docs/docs/zh/guide/installation/pseudo-cluster.md b/docs/docs/zh/guide/installation/pseudo-cluster.md index b534a9835a..54ac904a01 100644 --- a/docs/docs/zh/guide/installation/pseudo-cluster.md +++ b/docs/docs/zh/guide/installation/pseudo-cluster.md @@ -146,7 +146,7 @@ export PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME/bin: 使用上面创建的**部署用户**运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内 ```shell -sh ./bin/install.sh +bash ./bin/install.sh ``` > **_注意:_** 第一次部署的话,可能出现 5 次`sh: bin/dolphinscheduler-daemon.sh: No such file or directory`相关信息,次为非重要信息直接忽略即可 @@ -159,26 +159,26 @@ sh ./bin/install.sh ```shell # 一键停止集群所有服务 -sh ./bin/stop-all.sh +bash ./bin/stop-all.sh # 一键开启集群所有服务 -sh ./bin/start-all.sh +bash ./bin/start-all.sh # 启停 Master -sh ./bin/dolphinscheduler-daemon.sh stop master-server -sh ./bin/dolphinscheduler-daemon.sh start master-server +bash ./bin/dolphinscheduler-daemon.sh stop master-server +bash ./bin/dolphinscheduler-daemon.sh start master-server # 启停 Worker -sh ./bin/dolphinscheduler-daemon.sh start worker-server -sh ./bin/dolphinscheduler-daemon.sh stop worker-server +bash ./bin/dolphinscheduler-daemon.sh start worker-server +bash ./bin/dolphinscheduler-daemon.sh stop worker-server # 启停 Api -sh ./bin/dolphinscheduler-daemon.sh start api-server -sh ./bin/dolphinscheduler-daemon.sh stop api-server +bash ./bin/dolphinscheduler-daemon.sh start api-server +bash ./bin/dolphinscheduler-daemon.sh stop api-server # 启停 Alert -sh ./bin/dolphinscheduler-daemon.sh start alert-server -sh ./bin/dolphinscheduler-daemon.sh stop alert-server +bash ./bin/dolphinscheduler-daemon.sh start alert-server +bash ./bin/dolphinscheduler-daemon.sh stop alert-server ``` > **_注意1:_**: 每个服务在路径 `/conf/dolphinscheduler_env.sh` 中都有 `dolphinscheduler_env.sh` 文件,这是可以为微 diff --git a/docs/docs/zh/guide/installation/standalone.md b/docs/docs/zh/guide/installation/standalone.md index 3e6b87db3d..eed4e2ac6b 100644 --- a/docs/docs/zh/guide/installation/standalone.md +++ b/docs/docs/zh/guide/installation/standalone.md @@ -22,7 +22,7 @@ Standalone 仅适用于 DolphinScheduler 的快速体验. # 解压并运行 Standalone Server tar -xvzf apache-dolphinscheduler-*-bin.tar.gz cd apache-dolphinscheduler-*-bin -sh ./bin/dolphinscheduler-daemon.sh start standalone-server +bash ./bin/dolphinscheduler-daemon.sh start standalone-server ``` ### 登录 DolphinScheduler @@ -35,9 +35,9 @@ sh ./bin/dolphinscheduler-daemon.sh start standalone-server ```shell # 启动 Standalone Server 服务 -sh ./bin/dolphinscheduler-daemon.sh start standalone-server +bash ./bin/dolphinscheduler-daemon.sh start standalone-server # 停止 Standalone Server 服务 -sh ./bin/dolphinscheduler-daemon.sh stop standalone-server +bash ./bin/dolphinscheduler-daemon.sh stop standalone-server ``` [jdk]: https://www.oracle.com/technetwork/java/javase/downloads/index.html