zoukankan      html  css  js  c++  java
  • nginx访问日志和压测命令

     cd /opt
      657  ls
      658  cd tengine
      659  ls
      660  vim conf
      661  cd conf
      662  ls
      663  vim nginx.conf
      664  top
      665  clear
      666  cd /opt
      667  mkdir s18static
      668  ls
      669  cd s18static/
      670  touch index.html
      671  ls
      672  vim index.html
      673  cd tengine
      674  cd /opt
      675  cd tengine
      676  ls
      677  cd conf
      678  ls
      679  vim nginx.conf
      680  nginx
      681  ps -ef | grep nginx
      682  netstat -tunlp | grep nginx
      683  iptables -F
      684  cp nginx.conf nginx.conf.bak
      685  ls
      686  vim nginx.conf
      687  clear
      688  vim nginx.conf
      689  nginx -t
      690  cd /opt
      691  mkdir s18hanju
      692  touch s18hanju/index.html
      693  vim s18hanju/index.html
      694  nginx -s reload
      695  vim s18hanju/index.html
      696  cd s18hanju/
      697  ls
      698  rm -rf index.html 
      699  vim index.html
      700  ls
      701  cd /opt
      702  ls
      703  vim tengine/conf/nginx.conf
      704  nginx -s reload
      705  vim index.html
      706  vim s18hanju/index.html 
      707  yum -y install httpd-tools
      708  clear
      709  ab -kc 1000 -n 10000 http://192.168.40.145
      710  ab -kc 1000 -n 10000 http://192.168.40.145/
      711  ab -kc 1000 -n 100000 http://192.168.40.145/
      712  top
      713  clear
      714  ab -kc 1000 -n 1000000 http://192.168.40.145/
      715  ab -kc 1000 -n 100000 http://192.168.40.145/
      716  vim tengine/conf/nginx.conf
      717  ps -ef | grep nginx
      718  nginx -s reload
      719  ps -ef | grep nginx
      720  ab -kc 1000 -n 1000000 http://192.168.40.145/
      721  vim tengine/conf/nginx.conf
      722  clear
      723  nginx -s reload
      724  cd tengine
      725  ls
      726  tail -f logs/access.log 
  • 相关阅读:
    python中的运算符的分类以及使用方法
    python的变量的命名规则以及定义
    C#和Java在重写上的区别
    IIS6 伪静态
    【读书笔记】Linux源码注释
    计算机是如何启动的?
    XSHELL下直接下载文件到本地(Windows)
    [转载]Linux 环境下编译 0.11版本内核 kernel
    虚拟化技术
    CentOS 6.4 编译安装LLVM3.3,Clang和Libc++
  • 原文地址:https://www.cnblogs.com/xuqidong/p/11161300.html
Copyright © 2011-2022 走看看