zoukankan      html  css  js  c++  java
  • CentOS7设置主机名和 hosts映射

    1. 为了方便记忆,可以给 linux 系统设置主机名, 也可以根据需要修改主机名
    2. 指令 hostname : 查看主机名
    [root@lubenwei1 bin]# hostname
    lubenwei1
    
    1. 修改文件在 /etc/hostname 指定
    2. 修改后,重启生效
    3. 在 /etc/hosts 文件 指定
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    
    #配置服务器的dns
    192.168.217.26 lubenwei1
    
    1. ping 主机名
    [root@lubenwei1 bin]# ping lubenwei1
    PING lubenwei1 (192.168.217.26) 56(84) bytes of data.
    64 bytes from lubenwei1 (192.168.217.26): icmp_seq=1 ttl=64 time=0.069 ms
    64 bytes from lubenwei1 (192.168.217.26): icmp_seq=2 ttl=64 time=0.062 ms
    64 bytes from lubenwei1 (192.168.217.26): icmp_seq=3 ttl=64 time=0.056 ms
    64 bytes from lubenwei1 (192.168.217.26): icmp_seq=4 ttl=64 time=0.090 ms
    64 bytes from lubenwei1 (192.168.217.26): icmp_seq=5 ttl=64 time=0.060 ms
    ^Z
    [2]+  已停止               ping lubenwei1
    [root@lubenwei1 bin]# 
    
  • 相关阅读:
    Discovery Scanning
    Openvas
    Common Vulnerability Scoring System CVSS
    NIagara Workbench ( 温度控制)
    Nikto and whatweb
    Jace Config
    Active information gathering-services enumeration
    Intsall The Nessus in you kali linux
    Source Code Review
    Niagara workbench (Basic )
  • 原文地址:https://www.cnblogs.com/zk2020/p/15717250.html
Copyright © 2011-2022 走看看