FreeBSD kernel 编译大法(一)(3)
2008-02-23 08:02:48来源:互联网 阅读 ()
2.10.3 配置网关
User Confirmation Requested
Do you want this machine to function as a network gateway?
[ Yes ] No
如果要把机器作为一个本地网络的网关,来传送与其它机器之间的数据包,就选择[ Yes ]
然后键入Enter。如果机器只是一个网络的节点,那就选择[ No ]然后键入Enter 继续。
2.10.4 匿名FTP
第52 页FreeBSD 使用手册
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
Yes [ No ]
2.10.4.1 拒绝匿名FTP
选择默认的[ No ]然后键入Enter 将允许拥有帐号的用户使用FTP 来访问机器。
2.10.4.2 允许匿名FTP
如果你选择允许匿名FTP 连接,那任何人都能访问你的机器。在你启用这个选项之前,
安全性应当得到重视。更多信息可以参考第10 章。
使用允许匿名FTP,可以使用箭头选择[ Yes ]然后键入Enter。接下来的屏幕将会这样显示:
图2-34.默认的匿名FTP 配置
第53 页FreeBSD 使用手册
键入F1 将显示帮助画面:
This screen allows you to configure the anonymous FTP user.
The following configuration values are editable:
UID: The user ID you wish to assign to the anonymous FTP user.
All files uploaded will be owned by this ID.
Group: Which group you wish the anonymous FTP user to be in.
Comment: String describing this user in /etc/passwd
FTP Root Directory:
Where files available for anonymous FTP will be kept.
Upload subdirectory:
Where files uploaded by anonymous FTP users will go.
默认情况下,FTP 的根目录将被放在/var下。如果你没有足够空间,那也可以通过设置
/usr/ftp来作为FTP 根目录。
当你觉得满意时,键入Enter 继续。
第54 页FreeBSD 使用手册
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
[ Yes ] No
如果你选择[ Yes ]然后键入Enter,一个编辑器将自动启动来允许你编辑信息。
图2-35.编辑FTP 欢迎信息
这个文本编辑器叫做ee。根据指示来修改信息,或者使用其它文本编辑器来修改信息。
注意屏幕底部的文件名称和位置。
键入Esc,一个通常的默认菜单是a) leave editor。键入Enter 将退出编辑环境然后
继续。
2.10.5 配置网络文件访问
网络文件服务(NFS)允许通过网络来共享文件。一个机器可以被配置成一台服务器,
一个客户机,或者两者都是。参考第17.4 节了解更多信息。
2.10.5.1 NFS 服务器
User Confirmation Requested
第55 页FreeBSD 使用手册
Do you want to configure this machine as an NFS server?
Yes [ No ]
如果不需要一个网络文件系统服务器或客户机,选择[ No ]然后键入Enter。如果选择
[ Yes ],通常会有一个提示信息,需要创建一个输出文件。
Message
Operating as an NFS server means that you must first configure an
/etc/exports file to indicate which hosts are allowed certain kinds of
access to your local file systems.
Press [Enter] now to invoke an editor on /etc/exports
[ OK ]
键入Enter 继续。一个文本编辑器将被启动来对输出文件进行编辑。
图2-36.编辑输出文件
现在就可以根据指示来添加实际的输出文件系统,或以后选择一个自己喜欢的文件编辑
第56 页FreeBSD 使用手册
器来编辑。注意,屏幕底下的文件名和路径。
键入Esc,一个通常的菜单a) leave editor 将会出现。键入Enter 退出然后继续。
2.10.5.2 NFS 客户机
User Confirmation Requested
Do you want to configure this machine as an NFS client?
Yes [ No ]
使用箭头,选择[ Yes ]或[ No ],然后键入Enter。
2.10.6 安全级别
安全问题是一个配置设置,它通过启用或禁用默认程序或设置来调整期望的安全级别。
更多的信息请参看FreeBSD FAQ。
User Confirmation Requested
Do you want to select a default security profile for this host (select
No for "medium" security)?
[ Yes ] No
选择[ No ]然后键入Enter 将把安全设为中等。选择[ Yes ]然后键入Enter 将允许选
择一个不同的安装级别。
第57 页FreeBSD 使用手册
图2-37.安全级别选项
键入F1 可以显示帮助。键入Enter 回到选项菜单。
使用箭头选择Medium。当[ OK ]处于高亮显示时,键入Enter。
Message
Moderate security settings have been selected.
Sendmail and SSHd have been enabled, securelevels are
disabled, and NFS server setting have been left intact.
PLEASE NOTE that this still does not save you from having
to properly secure your system in other ways or exercise
due diligence in your administration, this simply picks
a standard set of out-of-box defaults to start with.
To change any of these settings later, edit /etc/rc.conf
第58 页FreeBSD 使用手册
[OK]
Message
Extreme security settings have been selected.
Sendmail, SSHd, and NFS services have been disabled, and
securelevels have been enabled.
PLEASE NOTE that this still does not save you from having
to properly secure your system in other ways or exercise
due diligence in your administration, this simply picks
a more secure set of out-of-box defaults to start with.
To change any of these settings later, edit /etc/rc.conf
[OK]
键入Enter 继续快速安装。
2.10.7 系统控制台的设置
有好几个选项可以来定制系统的控制台。
User Confirmation Requested
Would you like to customize your system console settings?
[ Yes ] No
要看看配置选项,选择[ Yes ]然后键入Enter。
图2-38.系统控制台配置选项
第59 页FreeBSD 使用手册
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
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
