CentOS7.6 modify the host name hostname

Scenes

        Modify the host name to easily view the software environment of the system deployment

solve

        vi modify the file /etc/hostname, enter the specified host name, such as media, which means that the current server is a streaming media server, wq! save and exit, reboot to restart the system, and take effect

note

        Trying to modify the /etc/sysconfig/network file is invalid



Guess you like

Origin blog.51cto.com/fengyuzaitu/2650195