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 
  • 相关阅读:
    pause函数
    内核实现信号捕捉原理
    sigaction()函数
    SSIS使用事务回滚
    Sql Server XML
    Powershell远程执行命令
    光盘yum源搭建
    挂载光盘
    网络管理
    用户管理
  • 原文地址:https://www.cnblogs.com/xuqidong/p/11161300.html
Copyright © 2011-2022 走看看