File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,36 @@ sudo ./easytier-cli service install -w abc
1515# 假设 EasyTier 的启动参数为 -w abc
1616.\easytier-cli.exe service install -w abc
1717```
18-
1918:::
2019
2120` install ` 后的部分会作为 ` easytier-core ` 的启动参数。
2221
22+ 完整示例:
23+ ::: code-group
24+
25+ ``` sh [Linux]
26+ # 假设 EasyTier 的启动参数为 -w abc
27+ sudo ./easytier-cli service install \
28+ --description " 自定义服务描述" \ # 可选,默认使用包描述
29+ --display-name " 显示名称" \ # 可选,服务显示名称
30+ --disable-autostart \ # 可选,禁用开机自启(默认启用)
31+ --core-path /path/to/easytier-core \ # 可选,指定二进制路径
32+ --service-work-dir /工作目录路径 \ # 可选,指定工作目录
33+ -- -w abc # 可选,传递给 easytier-core 的参数
34+ ```
35+
36+ ``` powershell [Windows]
37+ # 假设 EasyTier 的启动参数为 -w abc
38+ .\easytier-cli.exe service install `
39+ --description "自定义服务描述" ` # 可选,默认使用包描述
40+ --display-name "显示名称" ` # 可选,服务显示名称
41+ --disable-autostart ` # 可选,禁用开机自启(默认启用)
42+ --core-path /path/to/easytier-core ` # 可选,指定二进制路径
43+ --service-work-dir /工作目录路径 ` # 可选,指定工作目录
44+ -- -w abc # 可选,传递给 easytier-core 的参数
45+ ```
46+ :::
47+
2348服务安装成功后,可以使用以下命令对服务进行管理:
2449
2550- 启动服务:
You can’t perform that action at this time.
0 commit comments