解决方法 mv /etc/hostname /tmp echo '{hostname}' > /etc/hostname cat /etc/hostname > /proc/sys/kernel/hostname