日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

FreeBSD handbook中文版 6 配置與調(diào)整( 四 )


/usr/local/etc/rc.d 安裝應用程序的啟動/停止的腳本 。
穩(wěn)定的系統(tǒng)指定的數(shù)據(jù)文件:bind 區(qū)域文件 , 數(shù)據(jù)庫文件等等 。/var/db
6.7.2 主機名
6.7.2.1 /etc/resolv.conf
/etc/resolv.conf 描述了FreeBSD 如何訪問internet 的域名系統(tǒng)(DNS) 。最普通的
resolv.conf 的記錄是:
nameserver 要查詢的域名服務器的IP 地址 。服務器按照順序查詢 。
搜索域名的列表 。這通常是由本地的域名決定的 。search
本地域名 。domain
第7 頁FreeBSD 使用手冊
一個典型的resolv.conf:
search foobar.com
nameserver 147.11.1.11
nameserver 147.11.100.30
DhclIEnt 通常會把DHCP 服務器接收到的信息重寫resolv.conf 。
6.7.2.2 /etc/hosts
/etc/hosts 是一個文本數(shù)據(jù)庫 。它是用來聯(lián)合DNS 和NIS 給IP 地址的影射表提供名字 。
本地的電腦通過一個LAN 進行連接 , 可能會作為一個簡單的命名目的而放在這兒 , 以代替設
置一個名稱服務器 。另外 , /etc/hosts 能被用來提供一個本地internet 名稱的記錄 , 減少
搜索普通訪問名稱的需求 。
# $FreeBSD$
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
::1 localhost localhost.my.domain myname.my.domain
127.0.0.1 localhost localhost.my.domain myname.my.domain
#
第8 頁FreeBSD 使用手冊
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers. PLEASE PLEASE PLEASE do not try
# to invent your own network numbers but instead get one from your
# network provider (if any) or from the Internet Registry (ftp to
# rs.internic.net, Directory ‘/templates").
#
/etc/hosts 的簡單格式:
[Internet address] [offical hostname] [alias1] [alias2] ...
例如:
10.0.0.1 myRealHostname.foobar.com myRealHostname foobar1 foobar2
第9 頁FreeBSD 使用手冊
6.7.3 日志文件配置
6.7.3.1 syslog.conf
Syslog.conf 是syslogd 程序的配置文件 。它指出記錄到日志文件的syslog 信息的類
型 。
# $FreeBSD$
#
# Spaces ARE valid field separators in this file. However,
# other *nix-like systems still insist on using tabs as field
# separators. If you are sharing this file between systems, you
# may want to use only tabs as field separators here.
# Consult the syslog.conf manpage.
*.err;kern.debug;auth.notice;mail.crit /dev/console
*.notice;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
cron.* /var/log/cron
*.err root
*.notice;news.err root
*.alert root
*.emerg *
# uncomment this to log all writes to /dev/console to /var/log/console.log
第10 頁FreeBSD 使用手冊
#console.info /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
#*.* /var/log/all.log
# uncomment this to enable logging to a remote loGhost named loghost
#*.* @loghost
# uncomment these if you"re running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
!startslip
. /var/log/slip.log
!ppp
. /var/log/ppp.log
6.7.3.2 newsyslog.conf
Newsyslog.conf 是newsyslog 程序的配置文件 。一個被cron newsyslog 安排來運行的
程序決定了什么時候日志文件要求重新存檔或整理 。Logfile 會被改為logfile.1,

推薦閱讀