安装Apache无法正常启动的原因
2009-05-13 11:43:29来源:未知 阅读 ()
他是在在安装完FreeBSD系统后在Configure的Networking里进行网络配置.
而我就是安装完系统后进入系统再在/etc/rc.conf输入网络配置的.
就是这个原因,令我错过了成功安装Apache的机会.我的解决方面如下:
在安装完FreeBSD系统后在Configure的Networking里进行网络配置和在安装完系统后进入系统再在/etc/rc.conf输入网络配置不同的是:
有第一种情况下,系统会将你的domain写入到/etc/rc.conf和/etc/hosts里面去.而第二种情况就只是把网络配置写入到/etc/rc.conf里而已.
这样情况就开始明朗了.在第一种情况下,Apache能启动的原因为:它将domain写入/etc/rc.conf的同时也将它写入到/etc/rc.conf里面去了.而/etc/hosts的作用为:
man hosts:
The hosts file contains information regarding the known hosts on the net-
work. It can be used in conjunction with DNS, and the NIS maps
`hosts.byaddr' and `hosts.byname', as controlled by
nsswitch.conf(5)
.
For each host a single line should be present with the following informa-
tion:
Internet address
official host name
aliases
Items are separated by any number of blanks and/or tab characters. A
``#'' indicates the beginning of a comment; characters up to the end of
the line are not interpreted by routines which search the file.
When using the name server
named(8)
, this file provides a backup used
when the name server is not running. For the name server, it is sug-
gested that only a few addresses be included in this file. These include
addresses for the local interfaces that
ifconfig(8)
needs at boot time
and a few machines on the local network.
This file may be created from the official host data base maintained at
the Network Information Control
Center (NIC)
, though local changes may be
required to bring it up to date regarding unofficial aliases and/or
unknown hosts. As the data base maintained at NIC is incomplete, use of
the name server is recommended for sites on the DARPA Internet.
Network addresses are specified in the conventional ``.'' (dot) notation
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- 急!断电源后不能启动[搞定了] 2009-05-13
- 用amd64版的兄弟么有用X的吗? 2009-05-13
- 启动dbus和hald网卡就不见了?? 2009-05-13
- netbsd启动gnome失败! 2009-05-13
- 做完raid之后,系统无法启动,各位兄弟帮帮忙吧 2009-05-13
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