solaris11調整
從solaris11開始,系統的調整如時區網絡,已經發生了很大的變化,不少不能再去修改文件來實現,而是經過命令,下面就幾個經常使用的地方進行說明node
一、時區調整
root@MYTEST:~# date
Wednesday, December 11, 2013 10:36:55 AM UTC
這個時候是安裝的沒有進行選擇的,咱們須要調整成中國時區,修改以下:
root@MYTEST:~# svccfg -s timezone:default setprop timezone/localtime=astring: PRC
root@MYTEST:~# svcadm refresh timezone:defaultbash
二、網絡調整
有時候,在安裝的時候,咱們沒有規劃ip,在後期過程當中,要進行調整
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.0.0.14/24網絡
root@MYTEST:~# ipadm delete-addr net0/v4
root@MYTEST:~# ipadm create-addr -T static -a local=192.168.19.77/24 net0
root@MYTEST:~# route add default 192.168.19.254app
三、修改hostnameide
--查看當前的名稱,感受不爽,須要修改
-bash-4.1# hostname
test
-bash-4.1# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/nodename astring test
config/loopback astring testoop
--進行修改
-bash-4.1# svccfg -s system/identity:node setprop config/nodename="MYTEST"
-bash-4.1# svccfg -s system/identity:node setprop config/loopback="MYTEST"spa
--重啓服務
-bash-4.1# svccfg -s system/identity:node refresh
-bash-4.1# svcadm restart system/identity:node.net
--檢查修改
-bash-4.1# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/nodename astring MYTEST
config/loopback astring MYTESTrest
轉自:http://blog.itpub.net/29371470/viewspace-1062964/orm