计算机英语讲课笔记10

I. IP - Hostname Mapping

  • We can access a network resource in two manners - using IP or using hostname
  • URL (Uniform Resource Locator) is used to access a certain resource on the Internet.
  • URL has four parts: protocol + host + port + path

1. Using IP Address

2. Using Hostname

3. Mapping Between IP and Hostname

(1) Windows

  • hosts文件位置:C:\Windows\System32\drivers\etc\hosts
    在这里插入图片描述

(2) Linux (CentOS)

  • three nodes: master, slave1, slave2
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
  • on the master, we want to ping slave1 in two manners
    在这里插入图片描述
    在这里插入图片描述
  • We can do this in two manners because we have set the mapping between ip and hostname
  • Execute the command: vim /etc/hosts
    在这里插入图片描述

4. Hostname

(1) Display Hostname

  • Execute the command: hostname
    在这里插入图片描述

(2) Modify Hostname

  • Execute the command: hostnamectl set-hostname howard-master
    在这里插入图片描述
  • Let’s view the new hostname
    在这里插入图片描述
  • Now let’s reboot the master virtual machine
    在这里插入图片描述
    在这里插入图片描述
  • on the slave1, we ping master virtual machine by ip address
    在这里插入图片描述
  • on the slave1, we ping master virtual machine by the new hostname
    在这里插入图片描述
  • on the slave1, we can ping master virtual machine by the old hostname
    在这里插入图片描述
  • Now I want to restore the hosname of the master virtual machine
    在这里插入图片描述
  • reboot the master virtual machine
    在这里插入图片描述
  • reconnect the master virtual machine
    在这里插入图片描述

II. Data Visutalization

`

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

酒城译痴无心剑

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值