如何修改Linux的hostname

1.vim /etc/hostname

2..修改后,使用root用户reboot(重启)系统,则hostname的修改就永久生效了

posted @ 2020-04-20 09:47  不会飞的鲨鱼  阅读(532)  评论(0编辑  收藏  举报