菜鸟级tomcat问题,恳请高手解答,谢谢

来源:百度知道 编辑:UC知道 时间:2024/04/28 12:56:13
装了tomcat后,已经将server.xml里的端口改为8083,输入 http://localhost:8083/ 打不开页面,输入 http://127.0.0.1:8083/就可以正常打开tomcat页面,请问这是怎么回事,怎么解决呢,谢谢。

你 hosts 文件没有定义

[C:\WINDOWS\system32\drivers\etc]type hosts

# Copyright (c) 1993-1999 Microsoft Corp.

#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

[C:\WINDOWS\system32\drivers\etc]

1.浏览器输入:C:\WINDOWS\system32\d