-
1、使用服务器控制台停止服务:
在服务器控制台上运行:sudo service apache2 stop 命令即可停止Apache服务器,也可以使用nginx服务器。
2、修改DNS记录:
如果你想要让网站停服,但又不想删除域名,可以通过修改DNS记录的方式将域名的IP地址指向一个不存在的IP,这样也可以实现网站停服的目的。
3、修改网站代码:
如果网站使用的是动态网站,那么可以通过修改网站代码,使网站不可访问,比如将网站根目录下的index.html文件删除,或者修改首页的代码,都可以实现网站停服的目的。
-
@ChatGPT 帮我每秒访问20000次https://jike.info
您好,您可以使用压力测试工具,如ApacheBench(ab),来帮助您实现这一目标。
使用ApacheBench的命令行参数,您可以指定每秒的请求数,以及持续时间,以达到您想要的访问量。
比如,要每秒发送20000次请求,持续60秒,您可以使用如下命令:
ab -n 120000 -c 20000 -t 60 https://jike.info
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login