|
这段在BSD里面错误的代码:LD_LIBRARY_PATH=/root/hlds_l:$LD_LIBRARY_PATH
#/bin/bash/
export LD_LIBRARY_PATH=/root/hlds_l:$LD_LIBRARY_PATH
cd /root/hlds_l
/root/hlds_l/hlds_run -game cstrike -port 27016 -insecure +sv_lan 1 +maxplayers 32 +map de_aztec -nomaster &
在FREEBSD5.3里面只需要修改LD_LIBRARY_PATH 这个就可以正常使用了。
FREEBSD5.3默认安装也不能正常使用。主要原因是分区过程中。必须单独给/ROOT 目录分配空间。默认的/ROOT 空间不够使用。我的是40G硬盘。
BSD5.3正确的脚本应该是:
#/bin/bash/
export root/hlds_l
cd /root/hlds_l
/root/hlds_l/hlds_run -game cstrike -port 27016 -insecure +sv_lan 1 +maxplayers 32 +map de_aztec -nomaster &
请注意了。CS1.5我在REDHAT9.0下面测试过了。其他网上的CS速度我也看过。都测试过了。速度非常慢。我在BSD里做的速度要比REDHAT 快2-3倍。
网络上面的速度都是在50-200左右。
我使用REDHAT9.0速度最低和最高也许有的时候是更高。一般PING值10-100或者更高。
我使用BSD做的 PING值最高是0-30只间。有时候更高不会超过。绝对不会超过PNG值70。
如果使用UNIX 做CS服务器我建议使用BSD
我使用REDHAT9.0测试的速度一览表
个人桌面-------自身就使用慢。超级慢PING值20以上
全部安装-------速度还比上面强点。PING值15以上
定制安装-------最快的PING值10以上
///////////////////////////////
BSD----开发着模式安装-0-30之间。最高也不会超过70网络繁忙的时候。技巧介绍一点哦。BSD
如果是BSD 必须增加一个参数
在编辑内核的过程中。在
machine i386
#cpu i486_cpu
#cpu i586_cpu
cpu i686_cpu
ident windgao
maxusers 0 (服务器连接限制) (如果不增加这项,CS服务器到19-25人左右的时候就很难进)
特别是2000的系统,如果是98的连接速度是没的说了。呵呵
另外你在进下我的BSD服务器吧。看下速度是多少
202.104.106.45:27016
我的内核主要修改部分,其他我都没有修改过的。
machine i386
#cpu I486_CPU
#cpu I586_CPU
cpu I686_CPU
ident windgao
maxusers 0
# To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" # Default places to look for devices.
options SCHED_4BSD # 4BSD scheduler
options INET # InterNETworking
#options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
#options NFSCLIENT # Network Filesystem Client
#options NFSSERVER # Network Filesystem Server
#options NFS_ROOT # NFS usable as /, requires NFSCLIENT
#options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options SCSI_DELAY=15000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
#options KBD_INSTALL_CDEV # install a CDEV entry in /dev
#options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.
options ADAPTIVE_GIANT # Giant mutex is adaptive.
options QUOTA
[QUOTE]
options DEVICE_POLLING
options HZ=2000
options IPSTEALTH
options TCP_DROP_SYNFIN
主要增加内核文件,网络优化程序.
options IPFIREWALL
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100[/QUOTE]
这是我的rc.conf文件,我开启了防DDOS 攻击防火墙和路游功能,
# -- sysinstall generated deltas -- # Fri May 20 14:10:53 2005
# Created: Fri May 20 14:10:53 2005
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="192.168.1.4"
hostname="mybsd.com"
ifconfig_vr0="inet 192.168.1.244 netmask 255.255.255.0"
inetd_enable="YES"
linux_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
inetd_enable="YES"
mouse_enable="YES"
sendmail_enable="NONE"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="vr0"
natd_flags=""
kern_securelevel_enable="YES"
kern_securelevel="2"
defaultrouter="202.96.134.133"
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_flags=""
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
enable_quota="YES"
check_quotas="YES"
[QUOTE]# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Fri May 20 07:10:34 2005
# -- sysinstall generated deltas -- # Fri May 20 07:10:34 2005
inetd_enable="YES"
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Fri May 20 07:13:47 2005
# -- sysinstall generated deltas -- # Fri May 20 07:13:47 2005
ifconfig_vr0="inet 192.168.1.244 netmask 255.255.255.0"
router_flags="-q"
router="/sbin/routed"
router_enable="YES"
gateway_enable="YES"
defaultrouter="192.168.1.4"
hostname="jywb.mupk.com"
本段系统自动生成
[/QUOTE]
路游加防火墙简单的规则表(sysctl.conf)
# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
net.inet.ip.forwarding=1
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.udp.sendspace=65535
net.inet.udp.maxdgram=65535
net.local.stream.sendspace=65535
net.inet.tcp.rfc1323=1
net.inet.tcp.rfc1644=1
net.inet.tcp.rfc3042=1
net.inet.tcp.rfc3390=1
kern.ipc.maxsockbuf=2097152
kern.maxfiles=65536
kern.maxfilesperproc=32768
net.inet.tcp.delayed_ack=0
net.inet.tcp.drop_synfin=1
net.inet.tcp.msl=7500
net.inet.tcp.syncookies=1
net.inet.tcp.blackhole=2
net.inet.raw.maxdgram=65536
net.inet.raw.recvspace=65536
我的论坛
http://www.mupk.com
我的QQ:257386 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|