The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

服务器配置

Forums » Base » FreeBSD

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

1. November 2011, 11:29:37

li9chuan

Posts: 12

服务器配置


kern.ipc.maxsockbuf
       is# sysctl kern.ipc.maxsockbuf=209715200
       kern.ipc.maxsockbuf: 262144 -> 209715200

并发连接数
       这个值最大可设置为65535,根据实际情况而定,原来的128太小了,另外这个值改大后也会增加对DDOS的容纳能力。
       is# sysctl kern.ipc.somaxconn=32767
       kern.ipc.somaxconn: 128 -> 32767

安全
       is# sysctl net.inet.tcp.msl=2500
       net.inet.tcp.msl: 30000 -> 2500
       以加快不正常连接的释放过程。

转储文件名
       is# sysctl kern.corefile=%N-%U-%P.core
       is# sysctl -a | grep core

以上修改都可以直接修改/etc/sysctl.conf,使重启后依然有效。
       如转储文件名:
       kern.corefile:  %N-%U-%P.core

设置.so的查找路径,使用命令”ldconfig <libpath>”。
 	ldconfig /usr/home/li9chuan/code/GameSDK/lib

Forums » Base » FreeBSD