zoukankan      html  css  js  c++  java
  • 安装 CentOS7

    屏幕快照 2019-08-19 12.52.47
    屏幕快照 2019-08-19 12.52.47

    屏幕快照 2019-08-19 12.54.19
    屏幕快照 2019-08-19 12.54.19

    屏幕快照 2019-08-19 12.55.27
    屏幕快照 2019-08-19 12.55.27

    屏幕快照 2019-08-19 12.55.56
    屏幕快照 2019-08-19 12.55.56

    屏幕快照 2019-08-19 12.56.27
    屏幕快照 2019-08-19 12.56.27

    屏幕快照 2019-08-19 12.58.08
    屏幕快照 2019-08-19 12.58.08

    屏幕快照 2019-08-19 13.00.28
    屏幕快照 2019-08-19 13.00.28

    屏幕快照 2019-08-19 13.00.18
    屏幕快照 2019-08-19 13.00.18

    查看主机名

    //查看一下当前主机名的情况,查看全部三种主机名
    hostnamectl   
     
    //或者,查看全部三种主机名
    hostnamectl status
     
    //只查看静态、瞬态或灵活主机名,分别使用--static,--transient或--pretty选项
    [root@xh00 ~]# hostnamectl --static
     
    xh00
    [root@xh00 ~]# hostnamectl --transient
     
    xh01
    [root@xh00 ~]# hostnamectl --pretty
     
     
    //或者,查看到的是瞬态的(Tansient hostname)
    hostname
     
    //或者查看主机名配置文件,查看到的是静态的(Static hostname)
    cat /etc/hostname
    

    查看当前Linux操作系统相关信息(内核版本号、硬件架构、主机名称和操作系统类型等):

    uname -a //查看到的是瞬态的(Tansient hostname)
    cat /etc/redhat-release //查看操作系统环境

    修改主机名

    临时有效

    hostname 主机名 //只能临时修改的主机名,当重启机器后,主机名称又变回来了。

    hostname hx01
    

    永久生效

    hostnamectl set-hostname hx01
    

    还有一个办法编辑 /etc/hostname 文件

    vim /etc/hostname

    重启命令

    reboot  init 6   shutdown -r now
    

    关机

    poweroff  init 0  shoutdown -h now
    

    安装图形

    yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
    
    init 5
    
  • 相关阅读:
    Java深层复制方式
    手机浏览器点击时出现蓝色边框解决办法
    刷新iframe
    sass mixin 持续更新
    自动设置 rem es模块写法
    vue-cli安装sass
    URL转码
    H5单文件压缩插件
    文件跨域上传问题
    HTML,CSS,font-family:中文字体的英文名称【转载】
  • 原文地址:https://www.cnblogs.com/firebet/p/14169771.html
Copyright © 2011-2022 走看看