tomcat配置本地域名

tomcat配置本地域名,不用localhost而使用指定域名访问。Windows上配置

步骤一:打开hosts文件,添加指定域名,hosts文件路径

C:\Windows\System32\drivers\etc\hosts

使用记事本打开文件添加域名

步骤二:设置tomcat conf/server.xml中端口为80

步骤三:设置tomcat  conf/server.xml中host name为指定域名

步骤四:访问

posted @ 2017-09-12 12:15  fengqixueluo  阅读(647)  评论(0编辑  收藏  举报