当前位置: 技术问答>java相关
apache无发启动,help!
来源: 互联网 发布时间:2014-12-27
本文导语: 安装apache后,启动时出现如下信息: "APACHE.EXE:cannot determine local host name. Use the ServerName directive to set it manually." help! | 在httpd.conf 找下面一段: # # ServerName allows you to set a host name which...
安装apache后,启动时出现如下信息:
"APACHE.EXE:cannot determine local host name.
Use the ServerName directive to set it manually."
help!
"APACHE.EXE:cannot determine local host name.
Use the ServerName directive to set it manually."
help!
|
在httpd.conf
找下面一段:
#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
ServerName 127。0。0。1
找下面一段:
#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
ServerName 127。0。0。1