码迷,mamicode.com
首页 > 其他好文 > 详细

nginx访问日志和压测命令

时间:2019-07-10 01:11:55      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:col   span   net   pre   tst   nginx   nlp   nbsp   grep   

 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 

 

nginx访问日志和压测命令

标签:col   span   net   pre   tst   nginx   nlp   nbsp   grep   

原文地址:https://www.cnblogs.com/xuqidong/p/11161300.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!