• 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

  • 相关阅读:
    nginx负载均衡
    saltstack高效运维
    nginx入门与实战
    web service基础知识
    centos tomcat解压版安装
    centos yum 安装jdk1.7
    centos7安装opencv3.4.1(同样适用于最新版本4.2.0)
    正向代理与反向代理,正向代理与反向代理的应用
    MySQL日期 字符串 时间戳互转
    idea svn提交时,performing vcs refresh时间很长的解决办法
  • 原文地址:https://www.cnblogs.com/agang-php/p/4080002.html
Copyright © 2020-2023  润新知