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 

 

转载于:https://www.cnblogs.com/xuqidong/p/11161300.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值