游戏服务器如何限制与ip的连接数?
1.首先,添加limit_conn_zone。这个变量只能在http中使用。
2.其次,添加limit_conn,可以用在http,server,location中。
3.最后,重启nginxkillall-HUPnginx。nginx可以通过两个组件来限制目录的速度:HTTPLimitZoneModule和HTTPCoreModule。
2.其次,添加limit_conn,可以用在http,server,location中。
3.最后,重启nginxkillall-HUPnginx。nginx可以通过两个组件来限制目录的速度:HTTPLimitZoneModule和HTTPCoreModule。