nginx访问日志和压测命令
Posted xuqidong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于nginx访问日志和压测命令的主要内容,如果未能解决你的问题,请参考以下文章