Ubuntu下部署tomcat包

转载于https://www.jianshu.com/p/39fb151095f7

War包放到webapps目录下,不用解压

  1. 配置tomcat下的/conf/server.xml
    在Host配置段中添加,docBase参数标识的是war包的名称。
<Context path="/" docBase="hdfs-webdav.war" debug="0" privileged="true" reloadable="true"/> 
  1. 进入tomcat/bin
./startup.sh
//启动失败等问题 加下权限
 chmod 777 *.sh 
  1. 浏览器浏览
//TestWeb 是war包名称
http://localhost:8080/TestWeb/index
  1. 外部电脑调用
//ubuntu查勘ip
ifconfig
//外部电脑调用地址
http://ip:8080/war包名/TestWeb/index



作者:萧萧冷者
链接:https://www.jianshu.com/p/39fb151095f7
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

猜你喜欢

转载自blog.csdn.net/chencaw/article/details/83539587