天天看點

Nginx服務測試時的一些配置:wireshark、常用搜尋URL格式、關閉防火牆、siege

wrieshark

  sudo yum install wireshark-gnome

  sudo wireshar

  (以root啟動,否則看不到網卡)

網站URL格式

  以查詢lumia為例

  google  http://www.google.com/search?q=lumia

  baidu    http://www.baidu.com/s?wd=lumia

  tb     http://s.taobao.com/search?q=lumia

      亞馬遜   http://www.amazon.cn/s/keywords=lumia

  當當    http://search.dangdang.com/?key=lumia

  試了下京東,發現http://search.jd.com/Search?keyword=lumia會被跳轉到http://www.jd.com/?se=deny,懶得找原因了,略過。

<a href="http://blog.csdn.net/sabalol/article/details/9286073">http://blog.csdn.net/sabalol/article/details/9286073</a>

關閉防火牆

sudo systemctl stop firewalld.service

sudo systemctl disable firewalld.service

關閉SELinux

sudo vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - SELinux is fully disabled.

SELINUX= disabled # change

# SELINUXTYPE= type of policy in use. Possible values are:

targeted - Only targeted network daemons are protected.

strict - Full SELinux protection.

SELINUXTYPE=targeted

TOP輸出

<a href="http://www.51testing.com/?uid-188314-action-viewspace-itemid-814905">http://www.51testing.com/?uid-188314-action-viewspace-itemid-814905</a>

Siege測試(最大使用者數300)

<a href="http://www.chedong.com/blog/archives/000033.html">http://www.chedong.com/blog/archives/000033.html</a>

本文轉自五嶽部落格園部落格,原文連結:http://www.cnblogs.com/wuyuegb2312/p/3296571.html,如需轉載請自行聯系原作者

繼續閱讀