linux修改用户名

 
貌似只需要改红色的就行了,要保险就都改,比如阿里云服务器就要2个都改
 
ubuntu:修改 /etc/hostname
              修改 /etc/hosts  比如:127.0.0.1       localhost calm
centos:
              修改 /etc/hosts
              修改/etc/sysconfig/network
都需要以root用户执行,并且重启才行,临时更改的话,直接hostname + 名字就行了
原文地址:https://www.cnblogs.com/regit/p/7837504.html