Tuesday, April 13, 2021

How to change domain for Linux

 [root@artemis ~]# vi /etc/hostname

[root@artemis ~]# vi /etc/hostname

[root@artemis ~]# hostname artemis

[root@artemis ~]# vi /etc/hosts

[root@artemis ~]# vi /etc/resolv.conf

[root@artemis ~]# vi /etc/sysconfig/network

[root@artemis ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

[root@artemis ~]# service network restart  





No comments:

Post a Comment