使用httpwebrequest和响应来检查服务器是否正常工作 [英] using httpwebrequest and response to check server is working or not

查看:141
本文介绍了使用httpwebrequest和响应来检查服务器是否正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的网页(网站)位于两个不同的服务器上.我想知道第一台服务器是否关闭,然后我们使用第二台服务器访问网站.

您能否使用C#和asp.net来指导如何知道第一台服务器是否正常工作.
我可以从服务器状态获得回报吗.

Hi,

I have webpages(website) i.e.hosted on two difference server.I want to know if first server is down then we access website using second server.

Can you please guide how to know first server is working or not using C# and asp.net.
Can i get return from server status.

推荐答案

您好,

基本上,在这种情况下,负载平衡器(是一种计算机联网方法)用于将请求从一台停机服务器重定向到另一台服务器.

请点击下面的链接以获取更多详细信息:

http://stackoverflow.com/questions/9960258/when-to-use-load-balancing [^ ]



请让我们知道您的反馈.
Hello,

Basically in such scenario Load balancer (is a computer networking methodology) is use to redirect request from one down server to another server.

Plaase refer below links for more details :

http://stackoverflow.com/questions/9960258/when-to-use-load-balancing[^]



Please let us know your feedback if any.


这篇关于使用httpwebrequest和响应来检查服务器是否正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆