From 1af01102660b9c6407a696a75d0018c5df04042e Mon Sep 17 00:00:00 2001 From: Ting Wang Date: Mon, 27 Jul 2020 10:44:08 +0800 Subject: [PATCH] fix table bug Signed-off-by: Ting Wang --- .../advanced_use/mindinsight_commands.md | 107 ++++++++++-------- .../advanced_use/mindinsight_commands.md | 107 ++++++++++-------- 2 files changed, 118 insertions(+), 96 deletions(-) diff --git a/tutorials/source_en/advanced_use/mindinsight_commands.md b/tutorials/source_en/advanced_use/mindinsight_commands.md index 77c07320ec..c6f1c8c302 100644 --- a/tutorials/source_en/advanced_use/mindinsight_commands.md +++ b/tutorials/source_en/advanced_use/mindinsight_commands.md @@ -2,70 +2,81 @@ -1. View the command help information. + - ```shell - mindinsight --help - ``` +- [MindInsight Commands](#mindinsight-commands) + - [View the Command Help Information](#view-the-command-help-information) + - [View the Version Information](#view-the-version-information) + - [Start the Service](#start-the-service) + - [View the Service Process Information](#view-the-service-process-information) + - [Stop the Service](#stop-the-service) -2. View the version information. + - ```shell - mindinsight --version - ``` +## View the Command Help Information -3. Start the service. +```shell +mindinsight --help +``` - ```shell - mindinsight start [-h] [--config ] [--workspace ] - [--port ] [--url-path-prefix ] - [--reload-interval ] - [--summary-base-dir ] - ``` +## View the Version Information - Optional parameters as follows: +```shell +mindinsight --version +``` - |Name|Argument|Description|Type|Default|Scope|Specifications| - |---|---|---|---|---|---|---| - |`-h, --help`|Optional|Displays the help information about the startup command.|-|-|-|-| - |`--config `|Optional|Specifies the configuration file or module.|str|Empty string|-|Physical file path (file:/path/to/config.py) or a module path (python:path.to.config.module) that can be identified by Python.| - |`--workspace `|Optional|Specifies the working directory.|str|$HOME/mindinsight|-|-| - |`--port `|Optional|Specifies the port number of the web visualization service.|int|8080|1~65535|-| - |`--url-path-prefix `|Optional|Specifies the URL path prefix of the web visualization service.|str|Empty string|-|URL path prefix consists of segments separated by slashes. Each segment supports alphabets / digits / underscores / dashes / dots, but cannot just be emtpy string / single dot / double dots. The default value of URL_PATH_PREFIX is empty string.| - |`--reload-interval `|Optional|Specifies the interval (unit: second) for loading data.|int|3|-|The value 0 indicates that data is loaded only once.| - |`--summary-base-dir `|Optional|Specifies the root directory for loading training log data.|str|./|-|MindInsight traverses the direct subdirectories in this directory and searches for log files. If a direct subdirectory contains log files, it is identified as the log file directory. If a root directory contains log files, it is identified as the log file directory.| +## Start the Service - > When the service is started, the parameter values of the command line are saved as the environment variables of the process and start with `MINDINSIGHT_`, for example, `MINDINSIGHT_CONFIG`, `MINDINSIGHT_WORKSPACE`, and `MINDINSIGHT_PORT`. +```shell +mindinsight start [-h] [--config ] [--workspace ] + [--port ] [--url-path-prefix ] + [--reload-interval ] + [--summary-base-dir ] +``` -4. View the service process information. +Optional parameters as follows: - MindInsight provides user with web services. Run the following command to view the running web service process: +|Name|Argument|Description|Type|Default|Scope|Specifications| +|---|---|---|---|---|---|---| +|`-h, --help`|Optional|Displays the help information about the startup command.|-|-|-|-| +|`--config `|Optional|Specifies the configuration file or module.|str|Empty string|-|Physical file path (file:/path/to/config.py) or a module path (python:path.to.config.module) that can be identified by Python.| +|`--workspace `|Optional|Specifies the working directory.|str|$HOME/mindinsight|-|-| +|`--port `|Optional|Specifies the port number of the web visualization service.|int|8080|1~65535|-| +|`--url-path-prefix `|Optional|Specifies the URL path prefix of the web visualization service.|str|Empty string|-|URL path prefix consists of segments separated by slashes. Each segment supports alphabets / digits / underscores / dashes / dots, but cannot just be emtpy string / single dot / double dots. The default value of URL_PATH_PREFIX is empty string.| +|`--reload-interval `|Optional|Specifies the interval (unit: second) for loading data.|int|3|-|The value 0 indicates that data is loaded only once.| +|`--summary-base-dir `|Optional|Specifies the root directory for loading training log data.|str|./|-|MindInsight traverses the direct subdirectories in this directory and searches for log files. If a direct subdirectory contains log files, it is identified as the log file directory. If a root directory contains log files, it is identified as the log file directory.| - ```shell - ps -ef | grep mindinsight - ``` +> When the service is started, the parameter values of the command line are saved as the environment variables of the process and start with `MINDINSIGHT_`, for example, `MINDINSIGHT_CONFIG`, `MINDINSIGHT_WORKSPACE`, and `MINDINSIGHT_PORT`. - Run the following command to access the working directory `WORKSPACE` corresponding to the service process based on the service process ID: +## View the Service Process Information - ```shell - lsof -p | grep access - ``` +MindInsight provides user with web services. Run the following command to view the running web service process: - Output with the working directory `WORKSPACE` as follows: +```shell +ps -ef | grep mindinsight +``` - ```shell - gunicorn /log/gunicorn/access.log - ``` +Run the following command to access the working directory `WORKSPACE` corresponding to the service process based on the service process ID: -5. Stop the service. +```shell +lsof -p | grep access +``` - ```shell - mindinsight stop [-h] [--port PORT] - ``` +Output with the working directory `WORKSPACE` as follows: - Optional parameters as follows: +```shell +gunicorn /log/gunicorn/access.log +``` - |Name|Argument|Description|Type|Default|Scope|Specifications| - |---|---|---|---|---|---|---| - |`-h, --help`|Optional|Displays the help information about the startup command.|-|-|-|-| - |`--port `|Optional|Specifies the port number of the web visualization service.|int|8080|1~65535|-| +## Stop the Service + +```shell +mindinsight stop [-h] [--port PORT] +``` + +Optional parameters as follows: + +|Name|Argument|Description|Type|Default|Scope|Specifications| +|---|---|---|---|---|---|---| +|`-h, --help`|Optional|Displays the help information about the startup command.|-|-|-|-| +|`--port `|Optional|Specifies the port number of the web visualization service.|int|8080|1~65535|-| diff --git a/tutorials/source_zh_cn/advanced_use/mindinsight_commands.md b/tutorials/source_zh_cn/advanced_use/mindinsight_commands.md index 36f001c2cd..51e9aa10de 100644 --- a/tutorials/source_zh_cn/advanced_use/mindinsight_commands.md +++ b/tutorials/source_zh_cn/advanced_use/mindinsight_commands.md @@ -2,70 +2,81 @@ -1. 查看命令帮助信息 + - ```shell - mindinsight --help - ``` +- [MindInsight相关命令](#mindinsight相关命令) + - [查看命令帮助信息](#查看命令帮助信息) + - [查看版本信息](#查看版本信息) + - [启动服务](#启动服务) + - [查看服务进程信息](#查看服务进程信息) + - [停止服务](#停止服务) -2. 查看版本信息 + - ```shell - mindinsight --version - ``` +## 查看命令帮助信息 -3. 启动服务 +```shell +mindinsight --help +``` - ```shell - mindinsight start [-h] [--config ] [--workspace ] - [--port ] [--url-path-prefix ] - [--reload-interval ] - [--summary-base-dir ] - ``` +## 查看版本信息 - 参数含义如下: +```shell +mindinsight --version +``` - |参数名|属性|功能描述|参数类型|默认值|取值范围|规则限制| - |---|---|---|---|---|---|---| - |`-h, --help`|可选|显示启动命令的帮助信息。|-|-|-|-| - |`--config `|可选|指定配置文件或配置模块。|str|空|-|物理文件路径(file:/path/to/config.py)或Python可识别的模块路径(python:path.to.config.module)。| - |`--workspace `|可选|指定工作目录路径。|str|$HOME/mindinsight|-|-| - |`--port `|可选|指定Web可视化服务端口。|int|8080|1~65535|-| - |`--url-path-prefix `|可选|指定Web服务URL地址前缀。|str|空|-|URL地址前缀由斜杠(/)分隔成多个部分,各部分支持由字母/数字/下划线/连字符/点号组成的字符串,但不能是空字符串/单点号(.)/双点号(..)。| - |`--reload-interval `|可选|指定加载数据的时间间隔(单位:秒)。|int|3|-|设置为0时表示只加载一次数据。| - |`--summary-base-dir `|可选|指定加载训练日志数据的根目录路径。|str|./|-|MindInsight将遍历此路径下的直属子目录。若某个直属子目录包含日志文件,则该子目录被识别为日志文件目录,若根目录包含日志文件,则根目录被识别为日志文件目录。| +## 启动服务 - > 服务启动时,命令行参数值将被保存为进程的环境变量,并以 `MINDINSIGHT_` 开头作为标识,如 `MINDINSIGHT_CONFIG`,`MINDINSIGHT_WORKSPACE`,`MINDINSIGHT_PORT` 等。 +```shell +mindinsight start [-h] [--config ] [--workspace ] + [--port ] [--url-path-prefix ] + [--reload-interval ] + [--summary-base-dir ] +``` -4. 查看服务进程信息 +参数含义如下: - MindInsight向用户提供Web服务,可通过以下命令,查看当前运行的Web服务进程。 +|参数名|属性|功能描述|参数类型|默认值|取值范围|规则限制| +|---|---|---|---|---|---|---| +|`-h, --help`|可选|显示启动命令的帮助信息。|-|-|-|-| +|`--config `|可选|指定配置文件或配置模块。|str|空|-|物理文件路径(file:/path/to/config.py)或Python可识别的模块路径(python:path.to.config.module)。| +|`--workspace `|可选|指定工作目录路径。|str|$HOME/mindinsight|-|-| +|`--port `|可选|指定Web可视化服务端口。|int|8080|1~65535|-| +|`--url-path-prefix `|可选|指定Web服务URL地址前缀。|str|空|-|URL地址前缀由斜杠(/)分隔成多个部分,各部分支持由字母/数字/下划线/连字符/点号组成的字符串,但不能是空字符串/单点号(.)/双点号(..)。| +|`--reload-interval `|可选|指定加载数据的时间间隔(单位:秒)。|int|3|-|设置为0时表示只加载一次数据。| +|`--summary-base-dir `|可选|指定加载训练日志数据的根目录路径。|str|./|-|MindInsight将遍历此路径下的直属子目录。若某个直属子目录包含日志文件,则该子目录被识别为日志文件目录,若根目录包含日志文件,则根目录被识别为日志文件目录。| - ```shell - ps -ef | grep mindinsight - ``` +> 服务启动时,命令行参数值将被保存为进程的环境变量,并以 `MINDINSIGHT_` 开头作为标识,如 `MINDINSIGHT_CONFIG`,`MINDINSIGHT_WORKSPACE`,`MINDINSIGHT_PORT` 等。 - 根据服务进程PID,可通过以下命令,查看当前服务进程对应的工作目录`WORKSPACE`。 +## 查看服务进程信息 - ```shell - lsof -p | grep access - ``` +MindInsight向用户提供Web服务,可通过以下命令,查看当前运行的Web服务进程。 - 输出如下,可查看`WORKSPACE`。 +```shell +ps -ef | grep mindinsight +``` - ```shell - gunicorn /log/gunicorn/access.log - ``` +根据服务进程PID,可通过以下命令,查看当前服务进程对应的工作目录`WORKSPACE`。 -5. 停止服务 +```shell +lsof -p | grep access +``` - ```shell - mindinsight stop [-h] [--port PORT] - ``` +输出如下,可查看`WORKSPACE`。 - 参数含义如下: +```shell +gunicorn /log/gunicorn/access.log +``` - |参数名|属性|功能描述|参数类型|默认值|取值范围|规则限制| - |---|---|---|---|---|---|---| - |`-h, --help`|可选|显示启动命令的帮助信息。|-|-|-|-| - |`--port `|可选|指定Web可视化服务端口。|int|8080|1~65535|-| +## 停止服务 + +```shell +mindinsight stop [-h] [--port PORT] +``` + +参数含义如下: + +|参数名|属性|功能描述|参数类型|默认值|取值范围|规则限制| +|---|---|---|---|---|---|---| +|`-h, --help`|可选|显示启动命令的帮助信息。|-|-|-|-| +|`--port `|可选|指定Web可视化服务端口。|int|8080|1~65535|-| -- Gitee