1、安装工具
2、tomcat相关配置

2、修改tomcat conf 目录下的server.xml文件,在<Host></Host>节点下新增一个<context></context>
<Host name="gateway.duohuan.net" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="/data/tomcat8/webapps/info" reloadable="true" crossContext="true"/>
</Host>
属性 : name 是域名
appBase:是放war包的目录。
path:是项目访问的地址,为空的话可以直接用域名访问
docBase:这是war包的位置,绝对路径

3、修改nginx配置文件
找到nginx安装位置,修改nginx.conf文件


linux相关命令


网友评论