Linux系统修改hostname,不用重启
vi hosts
sysctl kernel.hostname=test
hostname
参考:
深入理解Linux修改hostname - 潇湘隐者 - 博客园