-
注意事项
不要使用Apache.Nginx等,因为他们的默认端口是80 -
操作步骤
(1)更改tomcat的端口
修改tomcat/conf/server.xml,找到如下代码,将port的值修改为80;
(2)配置安全组规则,放通80端口,如果使用宝塔面板,则还需要在宝塔面板上方通80端口;
(3)找到tomcat/webapps/ROOT目录,并在其中新建index1.jsp,添加如下内容
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<html>
<head>
<title>FineReport</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<iframe id="reportFrame" src="/WebReport/ReportServer?op=fs"
name="itemslist" frameborder="0" width="100%" height="100%"></iframe>
</body>
</html>
(4)修改tomcat/conf/web.xml,找到如下内容
修改为
之后重启tomcat即可