zoukankan      html  css  js  c++  java
  • linux关于软件安装和测试

    软件都是盘上的安装之前确保已挂载完毕

    1.安装软件
    rpm -ivh httpd-2*
     
    2.修改配置文件
    vi /etc/httpd/conf/httpd.conf
    listen 8888
     
    3.启动服务
    service httpd start
     
    只有rpm包软件才能用service xxx start/stop来启动或者关闭
    rpm包默认安装在/etc/rc.d/init.d/ 目录下,service启动也在这个包内找
    绝大多数软件都可用./xxx start来启动 stop停止 restart重启
     
    4.查看进程
    pstree 查看进程树
    pstree | grep httpd 筛选
     
    5.查看端口
    netstat -tunpl 查看所有已开通端口
    netstat -tunpl | grep httpd 筛选
     
    6.关闭软件
    service http stop
     
    7.关闭进程
    pkill httpd
     

    top 实时查看进程、内存和cpu情况
    1.load average: 2.03, 1.76, 1.80
    1分钟、5分钟、15分钟平均负载

    2.%Cpu(s):100.0 us, 0.0 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    0.0 id:空闲率(??)越大越好

    3.Mem : 1883616 total, 150796 free, 440012 used, 1292808 buff/cache
    内存空闲 150796kb


    uptime 服务器工作时间 在线用户 平均负载

    who 在线用户详细信息

    last 获取最近系统的重要操作

  • 相关阅读:
    circle
    pq
    graph
    matrix
    计数(count)
    想象一下(imagine)
    出租车(taxi)
    字符串函数 (strfun)
    Sabota?
    3973: seq
  • 原文地址:https://www.cnblogs.com/teitey/p/9452057.html
Copyright © 2011-2022 走看看