tomcat配置本地域名

mac2022-06-30  68

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

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

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

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

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

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

步骤四:访问

转载于:https://www.cnblogs.com/BeautyInWholeLife/p/7509498.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)