zoukankan      html  css  js  c++  java
  • 系统环境查询

    系统环境查询

    [root@Backup-script-machine ~]# cat /etc/redhat-release                              //系统版本
    CentOS release 6.7 (Final)

    [root@Backup-script-machine ~]# uname -r                                                   //内核版本
    2.6.32-573.el6.x86_64

    [root@Backup-script-machine ~]# uname -m                                                  //系统架构
    x86_64

    [root@Backup-script-machine ~]# echo $LANG                                              //系统字符集
    en_US.UTF-8         

    service network restart                             //centos6的网卡重启

    systemctl restart network                            //centos7的网卡重启

    cat /etc/resolv.conf                               //DNS配置文件

    cat /etc/hosts                                   //设置主机和IP绑定信息
    cat /etc/hostname                                 //设置主机名

    systemctl status firewalld.service                      //查看防火墙状态
    systemctl stop firewalld                            //关闭
    systemctl start firewalld                           //开启
    systemctl disable firewalld                          //开机自动关闭
    systemctl enable firewalld                           //开机自动启动
    chkconfig --list|grep network(RHLE6)                    //查看开机是否启动

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!学习中待续!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    所有文章仅为作为自己笔记,方便查阅.
  • 相关阅读:
    Oracle数据库
    Python-aiohttp百万并发
    Sentry的安装搭建与使用
    traceroute命令初探
    Python中断言与异常的区别
    二十三种设计模式及其python实现
    Celery
    SQLAlchemy
    python里使用reduce()函数
    python实现栈
  • 原文地址:https://www.cnblogs.com/guns/p/13453510.html
Copyright © 2011-2022 走看看