FreeBSD5.4系统快安装步骤(原版).txt

2009-05-13 04:53:07来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

###################################################基本设置#####################################################
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问题集

下一篇:ftp服务器快速安装(原版).txt