1. 程式人生 > >linux修改用戶名

linux修改用戶名

fig /etc/ 服務器 inux 臨時 執行 修改用戶名 color net

貌似只需要改紅色的就行了,要保險就都改,比如阿裏雲服務器就要2個都改 ubuntu:修改 /etc/hostname 修改 /etc/hosts 比如:127.0.0.1 localhost calm centos: 修改 /etc/hosts 修改/etc/sysconfig/network 都需要以root用戶執行,並且重啟才行,臨時更改的話,直接hostname + 名字就行了

linux修改用戶名