
Смена hostname (centos) |
![]() |
![]() |
![]() |
Автор: Administrator |
24.11.10 13:04 |
[root@centos ~]# cat /etc/hosts
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.1 centos.domain.local centos [ root@centos ~]# touch /etc/hostname [ root@centos ~]# echo "centos.domain.local centos" > /etc/hostname [ root@centos ~]# cat /etc/hostname [ root@centos ~]# hostname centos.domain.local centos -F /etc/hostname [ root@centos ~]# hostname [ root@centos ~]# shutdown -r now {jcomments on}
|
