FreeBSD5.4系统快安装步骤(原版).txt
2009-05-13 04:53:07来源:未知 阅读 ()
setenv PACKAGEROOT "
ftp://ftp.freebsdchina.org
"
pkg_add -r cvsup-without-gui
ee /etc/rc.conf
add
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
mkdir /usr/home/chb/pkg_info
reboot
pkg_info | col -b > /usr/home/chb/pkg_info/pkg_info_cvsup-without-gui.txt
##################################################同步系统代码###################################################
cvsup -g -L 2 -h cvsup.jp.FreeBSD.org /usr/share/examples/cvsup/standard-supfile
reboot
##################################################编译系统内核###################################################
cd /usr/src
make -j4 buildworld
cd /usr/src/sys/i386/conf
cp GENERIC /root/GENERIC.OLD
ee NS1
cd /usr/src
make buildkernel
make installkernel
shutdown -r now
mergemaster -p
cd /usr/src
make installworld
mergemaster
shutdown -r now
delete
/usr/obj
cd /usr/obj
chflags -R noschg *
rm -rf *
###############################################同步ports软件包###############################################
cvsup -g -L 2 -h cvsup.jp.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
reboot
################################################设置bind######################################################
%%%%%%%%%%%%%%%%%建立正反向解析目录%%%%%%%%%%%%%%%
mkdir /etc/namedb/rev
mkdir /etc/namedb/hosts
%%%%%%%%%%%%%%%改变正反向解析目录属性%%%%%%%%%%%%%
chown bind:bind /etc/namedb/rev
chown bind:bind /etc/namedb/hosts
chmod 750 /etc/namedb/rev
chmod 750 /etc/namedb/hosts
%%%%%%%%%%%%%生成正反向解析文件的例子文件%%%%%%%%%
cd /etc/namedb
sh make-localhost
%%%%%%%%%%%%%%%%生成这正反向解析文件%%%%%%%%%%%%%%
cp /etc/namedb/master/localhost.rev /etc/namedb/rev/192.168.0.rev
cp /etc/namedb/master/localhost.rev /etc/namedb/hosts/chb.com.hosts
%%%%%%%%%%%%%%%%设置DNS服务器的主域%%%%%%%%%%%%%%%
ee /etc/namedb/named.conf
zone "0.168.192.IN-ADDR.ARPA" {
type master;
file "/etc/namedb/rev/192.168.0.rev";
};
zone "chb.com" {
type master;
file "/etc/namedb/hosts/chb.com.hosts";
};
%%%%%%%%%%%%%设置DNS服务器反向解析文件%%%%%%%%%%%%%
ee /etc/namedb/rev/192.168.0.rev
$TTL 3600
@ IN SOA ns1.tjhaina.net. root.ns1.tjhaina.net. (
20050430 ; Serial
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:BIND9问题集
- FreeBSD下nginx+fast-cgi+mysql+zend的实现 2009-05-13
- gd 安装报错.求助 2009-05-13
- virtualbox for freeBSD 2009-05-13
- 从网上下载的packages为什么本地安装不了?[已解决!] 2009-05-13
- 求PC-BSD 7.1安装指南? 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash