命令:hostnamectl set-hostname (hostnamectl最後那字母是小寫L);spa
如:hostnamectl set-hostname dbmaster1ast
而後重啓一下:reboot登錄
從新登陸就能夠了。db