mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化命令行,并加入 [-help] [-start node=1] [-stop] [-config path] [-pprof 0.0.0.0:6060]参数
This commit is contained in:
@@ -75,7 +75,8 @@ cluster.json如下:
|
||||
* ServiceList:该Node将安装的服务列表
|
||||
---------------
|
||||
|
||||
在启动程序命令program start nodeid=1中nodeid就是根据该配置装载服务。
|
||||
在启动程序命令originserver -start nodeid=1中nodeid就是根据该配置装载服务。
|
||||
更多参数使用,请使用originserver -help查看。
|
||||
service.json如下:
|
||||
---------------
|
||||
```
|
||||
@@ -267,7 +268,7 @@ func main(){
|
||||
|
||||
编译后运行结果如下:
|
||||
```
|
||||
#originserver start nodeid=1
|
||||
#originserver -start nodeid=1
|
||||
TestService1 OnInit.
|
||||
TestService2 OnInit.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user