seabox whitelist
seabox whitelist¶
集群ip白名单
- 语法
-
``` bash set seabox whitelist configuration.
Usage: seabox whitelist [OPTIONS]
Options: -i, –ip_address TEXT set seabox whitelist address. it can be a host name, or it is made up of an ip address and a CIDR mask that is an integer (between 0 and 32 (ipv4) or 128 (ipv6) inclusive) that specifies the number of significant bits in the mask
-f, –file TEXT set seabox whitelist file –add add seabox whitelist configuration –remove remove seabox whitelist configuration -?, –help show this help, then exit ```
- 描述
-
集群ip白名单,支持添加和减少ip或ip列表文件
- 注意:如有注意事项,补充
- 选项
-
该命令支持选项说明如下:
- Options
-
命令支持的选项
-i
- 使用该选项指定要添加或减少的ip地址
-f
- 使用该选项定要添加或减少的ip地址列表文件
--add
- 使用该选项时表示执行添加ip到白名单
--remove
- 使用该选项时表示从ip白名单中移除此ip
-h, --help
- 使用该选项时返回seabox whitelist命令的帮助信息
- 注解
-
如有具体的使用限制及注意事项,在这部分列出。
- 注意: seabox whitelist命令要求使用SeaboxMPP数据库集群安装用户seabox,或root用户,且需通过以下命令设置正确的环境变量:
source $SDHOME/seaboxmpp_path.sh
其中,$SDHOME为安装SeaboxMPP数据库服务的主目录。
- 示例
-
以下是
seabox whitelist --help
的执行结果:[seabox@mpp-test-1 bin]$ seabox whitelist --help set seabox whitelist configuration. Usage: seabox whitelist [OPTIONS] Options: -i, --ip_address TEXT set seabox whitelist address. it can be a host name, or it is made up of an ip address and a CIDR mask that is an integer (between 0 and 32 (ipv4) or 128 (ipv6) inclusive) that specifies the number of significant bits in the mask -f, --file TEXT set seabox whitelist file --add add seabox whitelist configuration --remove remove seabox whitelist configuration -?, --help show this help, then exit
- 相关命令
- 无