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

前端之家收集整理的这篇文章主要介绍了php – 如何严格测试一个网站?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何严格测试网站的安全性和速度?

有什么方法和工具呢?

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

如果这只是一个压力测试,请尝试 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.

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

原文链接:https://www.f2er.com/php/131137.html

猜你在找的PHP相关文章