木头虫在家

  • 系统
  • 网络
  • 技术
  • 安全
  • 运维
  • 应用
木头虫在家
蜘蛛网
  1. 首页
  2. 域名主机
  3. 正文

腾讯云Freebsd系统负载优化

2020年8月28日 592点热度 0人点赞 0条评论

国内服务器,推荐腾讯云的。性价比高

【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
https://cloud.tencent.com/act/cps/redirect?redirect=1040&cps_key=6de6774e22e2e52640c48b1307d341b5&from=console

 

配置sysctl

# vi /etc/sysctl.conf

在内容里添加

net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.udp.maxdgram=65535
net.local.stream.sendspace=65535
net.inet.tcp.rfc1323=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.icmp.drop_redirect=1
net.inet.icmp.log_redirect=1
net.inet.ip.redirect=0
net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0
net.inet.icmp.icmplim=100
net.inet.icmp.icmplim_output=0
net.inet.tcp.drop_synfin=1
net.inet.tcp.always_keepalive=1
net.inet.ip.intr_queue_maxlen=1000
net.inet.tcp.msl=7500
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
kern.ipc.somaxconn=32768
security.bsd.see_other_uids=0
kern.securelevel=2
net.inet.tcp.log_in_vain=1
net.inet.udp.log_in_vain=1
net.inet.udp.checksum=1
net.inet.tcp.syncookies=1
kern.ipc.shm_use_phys=1
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
kern.coredump=0
net.local.stream.recvspace=65536
net.local.dgram.maxdgram=16384
net.local.dgram.recvspace=65536
net.inet.tcp.mssdflt=1460
net.inet.raw.maxdgram=65536
net.inet.raw.recvspace=65536

 

 

配置rc.conf

# vi /etc/rc.conf

内容填入

 

 

dumpdev="NO"
inetd_enable="NO"
postfix_enable="YES"
sendmail_enable="NONE"
fsck_y_enable="YES"
syslogd_enable="YES"
syslogd_flags="-s -s"
portmap_enable="NO"
kern_securelevel_enable="YES"
kern_securelevel="2"
clear_tmp_enable="YES"
update_motd="NO"
tcp_drop_synfin="YES"
icmp_drop_redirect="YES"
icmp_log_redirect="YES"
log_in_vain="YES"
accounting_enable="YES"

Views: 41
标签: freebsd 腾讯云
最后更新:2020年11月3日

admin

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >
分类
  • 值的推
  • 域名主机
  • 安全
  • 应用
  • 技术
  • 未分类
  • 系统
  • 网络
  • 运维
最新 热点 随机
最新 热点 随机
4s店修理工秘密,车开到报废,这几种东西不必换 联想K4e-ITL重装WIN系统蓝屏解决方案 上学出路在哪里 windows远程桌面中如何发送CTRL+ALT+DEL命令 linux查看远程文件保存到本地,复制一个文件到新文件未尾命令 电脑分区盘符不见了怎么找回 Windows系统通过命令行工具启用禁用网卡 攻防演练之企业网络安全体系建设历程 网络安全加固10条及攻防演练安全要求50条 Vsphere web client中英文切换
FreeBSD系统pkg 源如何更改成中科大国内源加快更新包速度 电子发票怎么打印成标准的增值税发票大小 Palo Alto 基于VM-Series ESXI虚拟防火墙部署 FreeBSD配置IP地址、网关、DNS的方法 Mysq数据库SELECT的结果集作为UPDATE的WHERE条件时的SQL语法 腾讯云 优惠活动 debian10系统openssl升级到最新版及error while loading shared libraries: libssl.so.3解决办法 网络安全之无线WiFi密码爆破字典下载 查看服务器有多少连接及详细连接,Tcp 连接出现大量ESTABLISHED连接 mysql中mysql-bin.000001 000002 000003是什么文件?怎么删除

COPYRIGHT © 2025 blog.qmun.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

浙ICP备11036795号