Centos配置域名和IP映射

Centos配置域名和IP映射

可以先本地打开CMD,对域名进行ping操作,找到域名对应的ip
Centos配置域名和IP映射_第1张图片
然后打开 /etc/hosts 进行编辑

cat /etc/hosts
vim /etc/hosts

Centos配置域名和IP映射_第2张图片

你可能感兴趣的:(运维,centos,tcp/ip,linux)