windows 用ab 測(cè)試會(huì)見nginx ,處事器上滑膩進(jìn)級(jí),查察日志是否影響用戶會(huì)見.進(jìn)級(jí)是否樂成.啟用vmware虛擬機(jī),用tar 包編譯安裝nginx并啟用即可.
H:\Program Files\Apache2.2\bin>ab.exe -n 800000 -c 6 -r "http://192.168.160.130/index.html"
[[email protected] sbin]# mv nginx nginx.old
[[email protected] sbin]# mv nginx18 nginx
啟用滑膩進(jìn)級(jí)
[[email protected] sbin]# kill -USR2 `cat /opt/soft/nginx/logs/nginx.pid`
[[email protected] sbin]#
[[email protected] sbin]#
[[email protected] sbin]# kill -WINCH `cat /opt/soft/nginx/logs/nginx.pid.oldbin`
[[email protected] sbin]# ps aux |grep nginx
root 8649 0.0 0.0 24280 992 ? Ss 16:20 0:00 nginx: master process ./nginx
root 8675 0.0 0.2 26900 2220 ? S 16:21 0:00 nginx: master process ./nginx
nobody 8676 2.5 0.1 27344 1752 ? S 16:21 0:01 nginx: worker process
nobody 8677 0.9 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8678 2.5 0.1 27344 1752 ? S 16:21 0:01 nginx: worker process
nobody 8679 1.1 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8680 0.7 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8681 1.8 0.1 27344 1752 ? S 16:21 0:01 nginx: worker process
nobody 8682 1.1 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8683 1.2 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8684 1.8 0.1 27344 1752 ? S 16:21 0:01 nginx: worker process
nobody 8685 1.3 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8686 1.2 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8687 0.7 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process
nobody 8688 0.9 0.1 27344 1752 ? S 16:21 0:00 nginx: worker process