FreeBSD kernel 编译大法(一)(2)

2008-02-23 08:02:48来源:互联网 阅读 ()

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


安装时间的多少取决于所选择的组件和安装的设备。会有一系列的信息显示在屏幕上以
指示当前的安装状态。当显示下面的信息时,表明安装已经完成了。
Message
Congratulations! You now have FreeBSD installed on your system.
We will now move on to the final configuration questions.
For any option you do not wish to configure, simply select No.
If you wish to re-enter this utility after the system is up, you may
第46 页FreeBSD 使用手册
do so by typing: /stand/sysinstall .
[ OK ]
[ Press enter to continue ]
键入Enter 进行快速配置。
选择[ No ]然后键入Enter 将跳过安装,所以就不会有任何修改被写入到你的系统中。
将会显示下面的信息:
Message
Installation complete with some errors. You may wish to scroll
through the debugging messages on VTY1 with the scroll-lock feature.
You can also choose "No" at the next prompt and go back into the
installation menus to try and retry whichever operations have failed.
[ OK ]
出现这个信息表明没有安装任何东西。键入Enter 将返回到主安装菜单退出安装。
2.10 快速安装
成功安装之后会有很多配置选项。在启动新的FreeBSD 系统之前或在使用
/stand/sysinstall 安装然后选择Configure 之后,一个选项可以通过重新键入配置选项来
进行配置。
2.10.1 网络设备配置
如果你以前在用FTP 安装时配置过,这个屏幕将不会显示,可能需要以后才能配置。有关本
地网络和配置FreeBSD 作为一个网关/路由的细节信息请参考PPP-Pendantic PPP Primer
使用手册。
User Confirmation Requested
第47 页FreeBSD 使用手册
Would you like to configure Ethernet or SLIP/PPP network devices?
[ Yes ] No
要配置一个网络设备,选择[ Yes ]然后键入Enter。否则,选择[ No ]继续。
图2-31.选择一个以太网设备
使用箭头选择接口进行配置,然后键入Enter。
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
Yes [ No ]
在这个私有本地网络中,当前的internet 类型协议(IPv4)已经足够了,选择[ No ],键入
Enter 继续。
如果你要使用新的网络协议(Ipv6),选择[ Yes ],然后键入Enter。它将花费几秒钟的时
间扫描RA 服务器。
User Confirmation Requested
第48 页FreeBSD 使用手册
Do you want to try DHCP configuration of the interface?
Yes [ No ]
如果不使用DHCP(动态域配置协议),就选择[ No ],然后键入Enter。选择[ Yes ]将执
行dhclient,如果成功了,将会自动填充网络配置信息。参考第17.8 节了解更多信息。接
下来的网络配置屏幕显示了以太网的配置信息,它将充当本地网络的网关。
图2-32.设置网络配置作为ed0
使用Tab 选择一个信息区,然后键入相应信息:
Host
完整的主机名,这个例子中是k6-2.weeble.com。
Domain
你机器的域名,这个例子是weeble.com。
IPv4 Gateway
主机传送数据包到非本地机器的IP 地址。如果机器在网络上有一个节点,只要把它填满。
如果机器充当本地网络与internet 之间的网关,就跳过这个区域。
第49 页FreeBSD 使用手册
Name server
你本地DNS 服务器的IP 地址。在这个私有本地网络上没有本地DNS 服务器,所以供应商的
DNS 服务器的IP 地址(208.163.10.2)就启用了。
IPv4 address
这个接口使用的IP 地址是(192.168.0.1)。
Netmask
这个本地网络使用的地址是C 类地址(192.168.0.0 - 192.168.255.255)。默认的子网掩
码是(255.255.255.0)。
Extra options to ifconfig
你将要添加一个特殊的接口选项。在这个例子中没有。
完成时使用Tab 键选择[ OK ],然后键入Enter。
User Confirmation Requested
Would you like to Bring Up the ed0 interface right now?
[ Yes ] No
选择[ Yes ]然后键入Enter,离开安装之后,将把机器带回到网络,然后准备使用。
2.10.2 配置internet 服务
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
Yes [ No ]
如果选择[ No ],象telnetd 这样的几个服务将不被启用。这意味着远程用户将无法使
用telnet 登陆到你的机器。而本地用户却仍能用telnet 访问远程机器。
第50 页FreeBSD 使用手册
通过编辑文件/etc/inetd.conf,安装完之后这些服务就能被启用。可以看看第17.12.1
节了解更多信息。
如果你希望在安装过程中配置这些服务,就选择[ Yes ]。一个额外的确认信息将被显
示。
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
services to be enabled, including finger, ftp and telnetd. Enabling
these services may increase risk of security problems by increasing
the exposure of your system.
With this in mind, do you wish to enable inetd?
[ Yes ] No
选择[ Yes ]继续。
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
which of its Internet services will be available. The default FreeBSD
inetd.conf(5) leaves all services disabled by default, so they must be
specifically enabled in the configuration file before they will
function, even once inetd(8) is enabled. Note that services for
IPv6 must be seperately enabled from IPv4 services.
第51 页FreeBSD 使用手册
Select [Yes] now to invoke an editor on /etc/inetd.conf, or [No] to
use the current settings.
[ Yes ] No
选择[ Yes ]将允许在一行的开头通过删除#号来添加相应的服务。
图2-33. 编辑inetd.conf
添加完这些服务后,键入Esc 将显示一个提示你退出并保存修改的菜单。

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:FreeBSD下PPPoE的设置

下一篇:FreeBSD 大量转档建帐号程式(perl代码)