Ubuntu 18.04更改hostname:ide
preserve_hostname: true (默認爲false)it
:wqclass
xxxx:wqdi
修改主機名命令:view
查看主機名命令:vi