通行证│用户名: 密码: 验证码: 验证码,看不清楚?请点击刷新验证码 电信网通铁通移动   在线
资源搜索:
热门搜索:Linux VB C语言 PhotoShop Flash TCP/IP
   首页 | 文章 | 软件 | 动画 | 资源 | 励志 | 骗术 | 论坛 | 邮箱 | 会员中心 | 军事 | 科技 | 博客 | 图片 | 商城 | 最新更新 | 800g资源 | 爱心黑客
您现在的位置: 爱国者黑客 >> 资源 >> 操作系统 >> FreeBSD >> 使用大全 >> 文章正文
FREEBSD升级及优化全攻略
责任编辑:ncic   更新日期:2007-4-2

  make clean

  make deinstall

  make install

  make clean 即可

  升级系统源码树及ports

更新/usr/share/examples/cvsup目录下stand-cvsup和ports-cvsup文件,并执行cvsup –g –L2 standard-supfile和cvsup –g –L2 ports-cvsup两个文件,升级ports树﹔

  CPUTYPE=i686

  CFLAGS= -O3 -pipe

  COPTFLAGS= -O3 -pipe

  升级操作系统

进入/usr/src

  执行make world

  整个过程很久,需要2小时左右。

  #disable ctrl+alt+delete

  options SC_DISABLE_REBOOT

  #quota limit

  options QUOTA

  #ipfw support

  options IPFIREWALL

  options DUMMYNET

  options HZ=3000

  options IPDIVERT

  options IPFIREWALL_VERBOSE

  options IPFIREWALL_VERBOSE_LIMIT=100

  options IPSTEALTH

  options TCP_DROP_SYNFIN

  options IPFIREWALL_DEFAULT_TO_ACCEPT

  options ICMP_BANDLIM

  options ACCEPT_FILTER_DATA

  options ACCEPT_FILTER_HTTP

  #ipfilter support

  #options IPFILTER

  #options IPFILTER_LOG

  #options IPFILTER_DEFAULT_BLOCK

  再执行:

  /usr/sbin/config onlinecq

  cd ../../compile/onlinecq

  make depend

  make

  make install

  #enable_quotas="YES"

  #check_quotas="YES"

  firewall_enable="YES"

  firewall_script="/etc/rc.firewall"

  firewall_type="/etc/ipfw.rules" #create it!

  firewall_quiet="NO"

  firewall_logging_enable="YES"

  log_in_vain="NO"

  tcp_drop_synfin="NO"

  tcp_restrict_rst="YES"

  icmp_drop_redirect="YES"

  优化内核参数

修改系统内核参数,实现微调:vi /etc/sysctl.conf

  kern.ipc.somaxconn=8192

  kern.ipc.maxsockbuf=2097152

  kern.maxfilesperproc=32768

  kern.maxfiles=65536

  kern.securelevel=-1

  net.inet.tcp.sendspace=65536

  net.inet.tcp.recvspace=32768

  net.inet.udp.maxdgram=57344

  net.inet.icmp.drop_redirect=1

  net.inet.icmp.log_redirect=0

  • 上一篇文章:
  • 下一篇文章:
  • 热门文章
    Olldbg常见问题
    汇编语言的艺术(组合语言的艺术)--观
    汇编语言的艺术(组合语言的艺术)--准
    汇编语言的艺术(组合语言的艺术)--基
    汇编语言的艺术(组合语言的艺术)--基
    汇编语言---程式设计 (4)
    虚拟8086模式
    SYS命令使用说明
    javascript + CSS 实现动态菜单显
    推荐文章
    自制Windows XP SP2自动安装光盘
    SQLServer注入工具改进版 v1.02
    使用photoshop CS进行自然美肤
    Photoshop绘制诺基亚手机
    PHOTOSHOP制作秋日之梦
    PHOTOSHOP鼠绘名模王爱萍
    Photoshop制作晶莹飞溅的水珠
    教你用PHOTOSHOP做放大镜
    鼠绘美女及服装修画全过程