Go to main content

Oracle® ZFS Storage Appliance 管理指南,发行版 OS8.8.0

退出打印视图

更新时间: 2018 年 11 月
 
 

设置服务属性 (CLI)

使用以下过程定义服务属性。注意:属性名称类似于它们在 BUI 中的名称,但 CLI 名称通常较短且有时是缩写。

  1. 转到 configuration services
  2. 选择一个服务并输入 show,查看可以为该服务设置的属性的列表,以及这些属性的当前值。
    hostname:configuration services> nis
    hostname:configuration services nis> show
    Properties:
                          <status> = online
                            domain = 
                         broadcast = true
                         ypservers =
    
  3. 使用 set 命令设置属性。
    hostname:configuration services nis> set domain="mydomain"
                            domain = mydomain (uncommitted)
  4. 在设置属性后,输入 commit 保存并激活新配置。
    hostname:configuration services nis> commit
    hostname:configuration services nis> show
    Properties:
                          <status> = online
                            domain = mydomain
                         broadcast = true
                         ypservers =

相关主题