本文介绍了IIS最大并发连接数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个.Net项目,我想在IIS默认网站中更改cmd或exe的最大并发连接数。
I have a .Net project and I want to changed the maximum concurrent connections with cmd or exe in IIS default website.
如何使用脚本更改它, exe或cmd commant?
How can I changed it with script, exe or cmd commant?
推荐答案
根据这个答案:您可以编辑machine.config来设置最大连接数。
According to this answer: https://stackoverflow.com/a/7898696/888617 you can edit your machine.config to set the max connections.
<configuration>
<system.net>
<connectionManagement>
<add address="*" maxconnection="65535"/>
</connectionManagement>
</system.net>
</configuration>
您可以通过以下方式获取配置文件:
You can get the config file with:
string configPath = System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;
这篇关于IIS最大并发连接数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!