加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 如何严格测试一个网站?

发布时间:2020-12-13 14:07:39 所属栏目:PHP教程 来源:网络整理
导读:如何严格测试网站的安全性和速度? 有什么方法和工具呢? 我们可以模仿数百名访问该网站的虚拟用户来查看其负载处理吗? 如果这只是一个压力测试,请尝试 http://freshmeat.net/projects/siege/ Siege is a regression test and benchmark utility. It can st
如何严格测试网站的安全性和速度?

有什么方法和工具呢?

我们可以模仿数百名访问该网站的虚拟用户来查看其负载处理吗?

如果这只是一个压力测试,请尝试 http://freshmeat.net/projects/siege/

Siege is a regression test and benchmark utility. It can stress test a single URL with a user defined number of simulated users,or it can read many URLs into memory and stress them simultaneously. The program reports the total number of hits recorded,bytes transferred,response time,concurrency,and return status. Siege supports HTTP/1.0 and 1.1 protocols,GET and POST directives,cookies,transaction logging,and basic authentication. Its features are configurable on a per user basis.

或http://httpd.apache.org/docs/1.3/programs/ab.html

ab is a tool for benchmarking the performance of your Apache
HyperText Transfer Protocol (HTTP) server. It does this by
giving you an indication of how many requests per second
your Apache installation can serve.

要测试您的PHP代码,请使用PHPUnit.要测试您的前端,请使用Selenium.

对于安全测试,我强烈建议购买审核,并将其留给专门的专家.只有太多可能的攻击媒介超出你的应用程序代码.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读