您当前的位置:首页>>技术中心>>数据恢复文章>>正文
 
FreeBSD handbook中文版 6 配置与调整
作者: 来源: 日期:2007-6-15 9:54:13  点击次数:

/usr/local/etc/rc.d 安装应用程序的启动/停止的脚本。
稳定的系统指定的数据文件:bind 区域文件,数据库文件等等。/var/db 
6.7.2 主机名
6.7.2.1 /etc/resolv.conf 
/etc/resolv.conf 描述了FreeBSD 如何访问internet 的域名系统(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 是一个文本数据库。它是用来联合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 

本新闻共6页,当前在第4页  1  2  3  4  5  6  


上一篇:FreeBSD handbook中文版 5 X Window 系统
下一篇:FreeBSD handbook中文版 7 FreeBSD 的启动过程

  北京总部: 4006-505-808
  上 海 部: 021-58358765
  深 圳 部: 0755-83692929
  浙 江 部: 13666673722
  其它地区: 4006-505-808

经典案例
藁城市东街百货-EFS文件解密成
中央电视台新闻评论部-苹果分
promise乔鼎硬盘阵列数据恢复成
麒麟童文化-苹果分区无法打开,
NAS 8100服务器数据恢复成功 
Liteon-重建一组RAID时,不小
濮阳市地方税务局-CHKDSK后数据
北京市海淀区华夏心理培训学校
台湾HD公司-FreeBSD Nas无法启
NCR公司-硬盘数据恢复成功 
解决方案
硬盘出现异响应急处理
raid磁盘阵列OFFLINE后的应急方
磁盘未被格式化,是否格式化数据
误GHOST、误一键恢复灾难应急方
误删除、误格式化数据灾难应急
LINUX FSCK数据出错灾难应急方
北亚数据恢复 - 联系我们 - 关于北亚 - 友情链接 - 网站地图 - RSS聚合 
版权所有 北京北亚数据恢复中心
24小时免费咨询电话:4006-505-808 或 800-810-580
公司地址:北京市海淀区中关村大街11号E世界A座8层832B室