zoukankan      html  css  js  c++  java
  • linux系统信息查看

    vmstat 2 3

    [root@LocalWeb01 ~]# vmstat 2 3(查看系统信息 2秒 一次  共 3次 )

                   内存                                                                                cpu
    procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     1  0      0 808324  53484  60840    0    0    21     8 1003   58  0  0 99  1  0
     0  0      0 808324  53484  60840    0    0     0     0  975   45  0  0 100  0  0
     0  0      0 808324  53484  60840    0    0     0     0  981   55  0  1 99  0  0

    dmesg 查看启动信息

    dmesg |grep  CPU 查看cpu启动信息

    free -m  查看内存使用状态

    [root@LocalWeb01 ~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:          1010        221        789          0         52         59
    -/+ buffers/cache:        109        901
    Swap:            0          0          0

    buffers缓冲  加快数据写速度

    cache缓存 加快从硬盘中读取速度

    cat  /proc/cpuinfo  查看CPU信息

    uptime  启动时间 和 平均负债

    [root@LocalWeb01 ~]# uptime
     21:52:12 up  1:30,  3 users,  load average: 0.08, 0.02, 0.01

    查看系统内核信息

    uname -a

    判断当前系统位数

    file /bin/ls

    [root@LocalWeb01 ~]# file /bin/ls
    /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped

    lsb_release -a

    [root@LocalWeb01 ~]# lsb_release -a
    LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
    Distributor ID:    CentOS
    Description:    CentOS release 5.9 (Final)
    Release:    5.9
    Codename:    Final

  • 相关阅读:
    百度翻译api 实现简易微信翻译小程序
    Vuejs 基础与语法
    ES6 之 let / const
    browsersync 插件
    面向对象 实现轮播组件
    PyV8在服务端运行自动崩溃问题
    Nginx详解(正向代理、反向代理、负载均衡原理)
    Windows下用Nginx配置遇到的问题
    vuex 数据绑定
    如何使用Photoshop批量扫描保存文档
  • 原文地址:https://www.cnblogs.com/agang-php/p/4080002.html
Copyright © 2011-2022 走看看