設為首頁

收藏本站

導覽首頁 | 新登場    ◇聯盟溫泉 | 民宿 | 人力銀行 | 女性 |

類型:Linux_commend

設定hostname與FQDN in CentOS and Redhat
Step 1: Edit the /etc/hosts file and give IP Address,FQDN name and Server name

#vi /etc/hosts
ipaddress_of_system server1.sharadchhetri.com server1


Step 2: Edit /etc/sysconfig/network file ,give HOSTNAME as machine name i.e server1

# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server1


Step 3: Restart the network service.
/etc/init.d/network restart

Now check the hostname and FQDN with command called “hostname” and “hostname -f” respectively.

#hostname
server1
#hostname -f
server1.sharadchhetri.com


主旨:

內容:




104休閒信箱 2.3.0 © 104mm.com 2001 - 2017. 您尚未登錄
Page generated in 0.03365898 seconds with 3 Queries