• 微课视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 程序设计
  • 信息安全
微课江湖
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 微课视频
  • bios
  • 系统安装
  • 系统进程
  • Windows
  • LINUX
  • RedHat/Centos
  • Ubuntu/Debian
  • Fedora
  • Solaris
  • 麒麟系统
  • 红旗Linux
  • 苹果MAC
  • 注册表
  • 其它系统
您的位置:首页 > 操作系统 >RedHat/Centos > CentOS7的hostnamectl命令使用详解

CentOS7的hostnamectl命令使用详解

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-05-12

佚名 通过本文向大家介绍了hostnamectl,init.d hostnamectl,centos7 cgroup详解,centos7查看ip命令,centos7重启网卡命令等相关知识,希望对您有所帮助,也希望大家多多支持微课江湖

centos7 上在主机名变更新增了一个hostnamectl 指令 ,该指令的无论在输出和更改上都较之前更加的便利。先看下hostname的help帮助信息:

从上面的help 帮助里可以看到,在设置主机名时,这里涉及到四种主机名,在hostnamectl 的man手册里给予了说明和解释,如下:

This tool distinguishes three different hostnames: the high-level "pretty" hostname which might include all kinds of special characters (e.g. "Lennart's
Laptop"), the static hostname which is used to initialize the kernel hostname at boot (e.g. "lennarts-laptop"), and the transient hostname which might be
assigned temporarily due to network configuration and might revert back to the static hostname if network connectivity is lost and is only temporarily
written to the kernel hostname (e.g. "dhcp-47-11").
Note that the pretty hostname has little restrictions on the characters used, while the static and transient hostnames are limited to the usually accepted
characters of Internet domain names.
更改主机名

一般情况下都是使用set-hostname进行更改:

The static hostname is stored in /etc/hostname, see hostname(5) for more information. The pretty hostname, chassis type, and icon name are stored in /etc/machine-info, see machine-id(5).
set-icon-name 设置的主机一般和图形界面会用到,对应的hostnamectl 输出中的Icon name  ,set-chassis 指定了主机的平台类型,如本机的是desktop,还可以设置为:"desktop", "laptop", "server", "tablet", "handset"

</div>
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • CentOS7的hostnamectl命令使用详解

相关文章

  • 2017-05-12CentOS 6.3下安装部署CHEF环境教程
  • 2017-05-12在CentOS系统下创建和配置虚拟用户的方法
  • 2017-05-12在RHEL系统中使用CentOS的yum源的方法
  • 2017-05-12CentOS 5.4+OpenVZ+Vtonf打造VPS服务器的方法
  • 2017-05-12Centos中记录终端输出到文本文件的方法
  • 2017-05-12CentOS下如何查看网络状态?CentOS下查看网络状态的方法
  • 2017-05-12设置centos时区修改时间的方法
  • 2017-05-12在低内存的情况下安装CentOS系统的技巧
  • 2017-05-12CentOS下如何配置两个网卡桥接?
  • 2017-05-12centos计算内存CPU正确方法

文章分类

  • bios
  • 系统安装
  • 系统进程
  • Windows
  • LINUX
  • RedHat/Centos
  • Ubuntu/Debian
  • Fedora
  • Solaris
  • 麒麟系统
  • 红旗Linux
  • 苹果MAC
  • 注册表
  • 其它系统

最近更新的内容

    • CentOS档案内容查阅指令详解
    • 优化centos远程SSH连接
    • CentOS 6 的安全配置(CentOS Linux服务器安全设置)
    • CentOS 7.1如何添加删除用户?CentOS 7.1添加删除用户的方法
    • CentOS使用脚本管理服务的详解
    • CentOS系统使用配置文件修改IP地址详细教程
    • CentOS下yum找不到某个包该如何解决?
    • CentOS6.4系统中Mysql数据库卸载、安装与配置教程[图文]
    • CentOS上的安全防护软件Selinux详解
    • CentOS下dstat监控详解

关于我们 - 联系我们 - 免责声明 - 网站地图 - 投诉建议

©CopyRight 2015-2017 www.weikejianghu.com Inc All Rights Reserved. 微课江湖 版权所有