This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b16ab0bff7 [Docs] (maint-monitor) when config automatic-service-start, 
we need config JAVA_HOME in the fe.conf and be.conf firstly (#23610)
b16ab0bff7 is described below

commit b16ab0bff727e2cf016c2cc0e4aa8e324aebad4a
Author: i78086 <[email protected]>
AuthorDate: Fri Sep 1 08:01:12 2023 +0800

    [Docs] (maint-monitor) when config automatic-service-start, we need config 
JAVA_HOME in the fe.conf and be.conf firstly (#23610)
---
 .../maint-monitor/automatic-service-start.md         | 19 ++++++++++++-------
 .../maint-monitor/automatic-service-start.md         | 20 ++++++++++++--------
 2 files changed, 24 insertions(+), 15 deletions(-)

diff --git a/docs/en/docs/admin-manual/maint-monitor/automatic-service-start.md 
b/docs/en/docs/admin-manual/maint-monitor/automatic-service-start.md
index 326692b76b..cc8db14c86 100644
--- a/docs/en/docs/admin-manual/maint-monitor/automatic-service-start.md
+++ b/docs/en/docs/admin-manual/maint-monitor/automatic-service-start.md
@@ -49,9 +49,14 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
 
 ### Configuration procedure
 
-1. Download the doris-fe.service file: 
[doris-fe.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-fe.service)
+1. You should config the "JAVA_HOME" variable in the config file, both fe.conf 
and be.conf, or you can't use the command "systemctl start" to start doris
+   ```
+   echo "JAVA_HOME=your_java_home" >> /home/doris/fe/conf/fe.conf
+   echo "JAVA_HOME=your_java_home" >> /home/doris/be/conf/be.conf
+   ```
+2. Download the doris-fe.service file: 
[doris-fe.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-fe.service)
 
-2. The details of doris-fe.service are as follows:
+3. The details of doris-fe.service are as follows:
 
     ```
     # Licensed to the Apache Software Foundation (ASF) under one
@@ -98,9 +103,9 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
 
 - ExecStart and ExecStop are configured based on actual fe paths
 
-3. Download the doris-be.service file : 
[doris-be.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-be.service)
+4. Download the doris-be.service file : 
[doris-be.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-be.service)
 
-4. The details of doris-be.service are as follows: 
+5. The details of doris-be.service are as follows: 
     ```
     # Licensed to the Apache Software Foundation (ASF) under one
     # or more contributor license agreements.  See the NOTICE file
@@ -146,11 +151,11 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
 
 - ExecStart and ExecStop are configured based on actual be paths
 
-5. Service configuration
+6. Service configuration
 
    Place doris-fe.service and doris-be.service in the /usr/lib/systemd/system 
directory
 
-6. Set self-start
+7. Set self-start
 
     After you add or modify the configuration file, you need to reload it
 
@@ -165,7 +170,7 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
     systemctl enable doris-be
     ```
 
-7. Service initiation
+8. Service initiation
 
     ```
     systemctl start doris-fe
diff --git 
a/docs/zh-CN/docs/admin-manual/maint-monitor/automatic-service-start.md 
b/docs/zh-CN/docs/admin-manual/maint-monitor/automatic-service-start.md
index 63a7140411..09d1fac228 100644
--- a/docs/zh-CN/docs/admin-manual/maint-monitor/automatic-service-start.md
+++ b/docs/zh-CN/docs/admin-manual/maint-monitor/automatic-service-start.md
@@ -47,10 +47,14 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
 ```
 
 ### 配置步骤
+1. 分别在fe.conf和be.conf中添加 JAVA_HOME变量配置,否则使用systemctl start 将无法启动服务
+    ```
+    echo "JAVA_HOME=your_java_home" >> /home/doris/fe/conf/fe.conf
+    echo "JAVA_HOME=your_java_home" >> /home/doris/be/conf/be.conf
+    ```
+2. 下载doris-fe.service文件: 
[doris-fe.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-fe.service)
 
-1. 下载doris-fe.service文件: 
[doris-fe.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-fe.service)
-
-2. doris-fe.service具体内容如下:
+3. doris-fe.service具体内容如下:
 
     ```
     # Licensed to the Apache Software Foundation (ASF) under one
@@ -97,9 +101,9 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
 
 - ExecStart、ExecStop根据实际部署的fe的路径进行配置
 
-3. 下载doris-be.service文件: 
[doris-be.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-be.service)
+4. 下载doris-be.service文件: 
[doris-be.service](https://github.com/apache/doris/blob/master/tools/systemd/doris-be.service)
 
-4. doris-be.service具体内容如下: 
+5. doris-be.service具体内容如下: 
     ```
     # Licensed to the Apache Software Foundation (ASF) under one
     # or more contributor license agreements.  See the NOTICE file
@@ -145,11 +149,11 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
 
 - ExecStart、ExecStop根据实际部署的be的路径进行配置
 
-5. 服务配置
+6. 服务配置
 
    将doris-fe.service、doris-be.service两个文件放到 /usr/lib/systemd/system 目录下
 
-6. 设置自启动
+7. 设置自启动
 
     添加或修改配置文件后,需要重新加载
 
@@ -164,7 +168,7 @@ doris   ALL=(ALL)       NOPASSWD:DORISCTL
     systemctl enable doris-be
     ```
 
-7. 服务启动
+8. 服务启动
 
     ```
     systemctl start doris-fe


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to