This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 010191b update `elasticjob.preferred.network.ip` docs (#1941)
010191b is described below
commit 010191b51986b04d370370b4ccae2656698bccff
Author: skai <[email protected]>
AuthorDate: Tue Jul 27 18:20:48 2021 +0800
update `elasticjob.preferred.network.ip` docs (#1941)
Co-authored-by: 蔡顺铠 <[email protected]>
---
docs/content/faq/_index.cn.md | 8 ++++++--
docs/content/faq/_index.en.md | 8 ++++++--
.../user-manual/elasticjob-lite/operation/deploy-guide.cn.md | 3 ++-
.../user-manual/elasticjob-lite/operation/deploy-guide.en.md | 3 ++-
4 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/docs/content/faq/_index.cn.md b/docs/content/faq/_index.cn.md
index 9561e9c..8d54892 100644
--- a/docs/content/faq/_index.cn.md
+++ b/docs/content/faq/_index.cn.md
@@ -122,6 +122,10 @@ Mesos 相关请参考 [Apache Mesos](https://mesos.apache.org/)。
回答:
-可以通过系统变量 `elasticjob.preferred.network.interface` 指定网卡。
+可以通过系统变量 `elasticjob.preferred.network.interface` 指定网卡或
`elasticjob.preferred.network.ip` 指定IP地址。
-例如指定网卡 eno1:`-Delasticjob.preferred.network.interface=eno1`。
+例如:
+
+1. 指定网卡 eno1:`-Delasticjob.preferred.network.interface=eno1`。
+1. 指定IP地址 192.168.0.100:`-Delasticjob.preferred.network.ip=192.168.0.100`。
+1. 泛指IP地址(正则表达式) 192.168.*:`-Delasticjob.preferred.network.ip=192.168.*`。
diff --git a/docs/content/faq/_index.en.md b/docs/content/faq/_index.en.md
index befb735..20d32ef 100644
--- a/docs/content/faq/_index.en.md
+++ b/docs/content/faq/_index.en.md
@@ -121,6 +121,10 @@ About Apache Mesos, please refer to [Apache
Mesos](https://mesos.apache.org/).
Answer:
-You may specify interface by system property
`elasticjob.preferred.network.interface`.
+You may specify interface by system property
`elasticjob.preferred.network.interface` or specify IP by system property
`elasticjob.preferred.network.ip`.
-For example, specify the interface eno1:
`-Delasticjob.preferred.network.interface=eno1`.
+For example
+
+1. specify the interface eno1: `-Delasticjob.preferred.network.interface=eno1`.
+1. specify network addresses, 192.168.0.100:
`-Delasticjob.preferred.network.ip=192.168.0.100`.
+1. specify network addresses for regular expressions, 192.168.*:
`-Delasticjob.preferred.network.ip=192.168.*`.
diff --git
a/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.cn.md
b/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.cn.md
index bf0afc7..71d0261 100644
--- a/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.cn.md
+++ b/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.cn.md
@@ -8,7 +8,8 @@ chapter = true
1. 启动 ElasticJob-Lite 指定注册中心的 ZooKeeper。
1. 运行包含 ElasticJob-Lite 和业务代码的 jar 文件。不限于 jar 或 war 的启动方式。
-1. 当作业服务器配置多网卡时,可通过设置系统变量 `elasticjob.preferred.network.interface`
指定网卡地址。ElasticJob 默认获取网卡列表中第一个非回环可用 IPV4 地址。
+1. 当作业服务器配置多网卡时,可通过设置系统变量 `elasticjob.preferred.network.interface` 指定网卡地址或
+ `elasticjob.preferred.network.ip` 指定IP。 ElasticJob 默认获取网卡列表中第一个非回环可用 IPV4 地址。
## 运维平台和 RESTFul API 部署(可选)
diff --git
a/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.en.md
b/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.en.md
index fb27b7d..06ae59c 100644
--- a/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.en.md
+++ b/docs/content/user-manual/elasticjob-lite/operation/deploy-guide.en.md
@@ -8,7 +8,8 @@ chapter = true
1. Start the ZooKeeper of the ElasticJob-Lite designated registry.
1. Run the jar file containing ElasticJob-Lite and business code. It is not
limited to the startup mode of jar or war.
-1. When the job server is configured with multiple network cards, the network
card address can be specified by setting the system variable
`elasticjob.preferred.network.interface`. ElasticJob obtains the first
non-loopback available IPV4 address in the network card list by default.
+1. When the job server is configured with multiple network cards, the network
card address can be specified by setting the system variable
`elasticjob.preferred.network.interface`
+or specify network addresses by setting the system variable
`elasticjob.preferred.network.ip`. ElasticJob obtains the first non-loopback
available IPV4 address in the network card list by default.
## Operation and maintenance platform and RESTFul API deployment (optional)