一、导入数据库
二、配置web项目访问端口
vim /var/lib/tomcat8/conf/server.xml
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" />
三、配置web项目访问跟路径
vim /var/lib/tomcat8/conf/server.xml
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
<Context ../> </Host>
四、修改前端访问地址
var prefix_url = "http://192.168.10.131:8080/ibs/";
五、修改数据库访问地址
jdbc.url=jdbc:mysql://192.168.10.131:3306/ibs_alibaba?characterEncoding=utf8&connectTimeout=1000
六、导入war包
七、重启tomcat服务器
service tomcat8 restart