实用技巧 Ubuntu Linux 8.04设置与优化 (2)

http://www.sina.com.cn 2008年05月07日 08:05  赛迪网

  5.程序启动优化

  使启动程序并行,加速启动过程。

  编辑 /etc/init.d/rc

  修改

  CONCURRENCY=none

  为:

  CONCURRENCY=shell

  小心别写错,错了就无法启动系统了。

  6.增加DNS cache

  dns cache dnsmasq 也是个不错的选择,但pdnsd 更小巧些,单机用这个就够了,而且也不是所有人都需要自己做cache的,我这里杭州网通的dns 服务器实在太慢了,才自己做cache 加快dns 解析速度的。

  sudo apt-get instll pdnsd 安装pdnsd

  编辑 /etc/pdnsd.conf 在 global 段下方加入

  server {ip="x.x.x.x"; /* 此处填你的第一个dns 服务器的 IP */

  timeout=30;

  interval=900;

  uptest=none;

  ping_timeout=500;

  purge_cache=off;

  caching=on;

  }server {

  ip="x.x.x.x"; /* 此处填你的第二个dns 服务器的 IP*/

  timeout=30;

  interval=900;

  uptest=none;

  ping_timeout=500;

  purge_cache=off;

  caching=on;

  }编辑/etc/resolv.conf文件

  改第一行内容为 “nameserver 127.0.0.1”

  7.安装RAR压缩/解压缩程序

  sudo apt-get install rar unrar

  做个软链接

  sudo ln -fs /usr/bin/rar /usr/bin/unrar

  这样,以后只要在命令行输入unrar,就可以解压或者压缩文件了,安装完成后,归档管理器也同时集成了rar组件。

  8.清理系统垃圾

  sudo apt-get autoclean清理旧版本的软件缓存

  sudo apt-get clean清理所有软件缓存

  sudo apt-get autoremove删除系统不再使用的孤立软件

  (责任编辑:云子)

[上一页] [1] [2]

本文导航:
·实用技巧 Ubuntu Linux 8.04设置与优化
·实用技巧 Ubuntu Linux 8.04设置与优化 (2)

发表评论 _COUNT_条
Powered By Google
不支持Flash
·《对话城市》直播中国 ·新浪特许频道免责公告 ·诚招合作伙伴 ·企业邮箱畅通无阻