root@t3-2:~# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/loopback astring
config/nodename astring t3-2
root@t3-2:~#
目前主機名稱為t3-2
2 - 設定新的主機名稱
root@t3-2:~# svccfg -s system/identity:node setprop config/nodename="NIASc11"
root@t3-2:~# svccfg -s system/identity:node setprop config/loopback="NIASc11"
改設定主機名稱為NIASc11
改設定主機名稱為NIASc11
3- 更新屬性參數:
root@t3-2:~# svccfg -s system/identity:node refresh root@t3-2:~# Hostname: NIASc11
4 - 重新啟動服務:
root@t3-2:~# svcadm restart system/identity:node
5 - 確認變更完成:
root@t3-2:~# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/nodename astring NIASc11
config/loopback astring NIASc11
沒有留言:
張貼留言