发新话题
打印

apache中怎样控制IP的连接数

apache中怎样控制IP的连接数

请说详细点      
互帮互助共进

TOP

How to limit the number of clients

Go to /usr/local/etc/apache, and you can see several default files, and one is httpd.conf.default. Give a command like this: cp httpd.conf.default httpd.conf
Of courcse you do this as root. then give a command like this: vi httpd.conf
Look for the item MaxClients and change the number to the number of clients you allow to connect.
Sorry I can't type Chinese and hope this will help. Good luck!      

TOP

Sorry, I'm wrong!

The item is MaxKeepAliveRequests and is not MaxClients.      

TOP

I forget something!

In FreeBSD the directory where apache configration files reside is /usr/local/etc/apache. In linux I don't know.      

TOP

In linux directory is /etc/httpd/conf      

TOP

发新话题