
Смена hostname (centos) |
![]() |
![]() |
![]() |
Автор: Administrator |
24.11.10 13:04 |
[[email protected] ~]# 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 [ [email protected] ~]# touch /etc/hostname [ [email protected] ~]# echo "centos.domain.local centos" > /etc/hostname [ [email protected] ~]# cat /etc/hostname [ [email protected] ~]# hostname centos.domain.local centos -F /etc/hostname [ [email protected] ~]# hostname [ [email protected] ~]# shutdown -r now {jcomments on}
|
