修改 staf 的 配置文件,在staf的安装目录的bin目录下 的 staf.cfg
每种请求都有安全级别的限制,只有你达到这种安全级别才能发送这种请求。
分为六级,级别0-5,0最低,5最高
- Level 0 - No access
- Level 1 - Restricted access. Only PING and helps available.
- Level 2 - Limited access. Only query/view facilities available.
- Level 3 - Standard access. Non-destructive updates allowed, e.g., logging.
- Level 4 - Advanced access. Update abilities, e.g., copying files, deleting log files.
- Level 5 - All access, e.g., SHUTDOWN, Process invocation, Trust definition manipulation
默认是
trust machine local://local level 5 //表示本地local的操作是5级权限
如果需要外部的pc能够 操作本地的staf,发送各种请求的话,需要执行ip地址或是网段
trust machine ssl://192.100.* level 5 //表示 对于192.100 网段开放 5级权限 针对ssl
trust machine tcp://192.100.* level 5 //表示 对于192.100 网段开放 5级权限 针对tcp
修改了staf.cfg之后,需要重启staf 服务