./stor install [ { -a | --api-port } API_PORT ] [ { -w | --web-port } WEB_PORT ]
此命令用来安装HBlock。
注意
请确保Linux用户具有所需要端口的权限。Linux系统默认小于1024的端口不对没有root权限的Linux普通用户开放。
安装HBlock和执行HBlock管理操作的应该属于同一用户。
参数
参数 描述 -a API_PORT或--api-port API_PORT 指定API端口号。
取值:整型,取值范围是[1, 65535],默认端口号是1443。
-w WEB_PORT或--web-port WEB_PORT 指定web端口号。
取值:整型,取值范围是[1, 65535],默认端口号是443。
示例
安装HBlock。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor install -w 2443
Do you agree with HBlock User Agreement? [Yes/No]
Used in Chinese mainland, follow https://www.ctyun.cn/portal/protocol/10073150
Otherwise, follow https://www.esurfingcloud.com/portal/protocol/20692906
y
Installing HBlock...
Installed successfully.
When all servers are installed, please initialize HBlock in any of the following ways:
1. Use web portal to initialize HBlock. The https port is 2443.
2. Use management API (POST /rest/v1/system/setup) to initialize HBlock. The https port is 1443.
3. Use command line (stor setup) to initialize HBlock. Type 'stor --help setup' for more information.