欢迎访问 SJsir 圣杰博客

A Linux operation and maintenance engineer's Blogs

帆软报表系统安装指南

  FineReport报表平台是帆软公司开发的独立报表管理系统,在报表平台中,管理员可以进行报表管理、用户管理、权限管理和平台管理,用户可以查阅、收藏、填报报表,完成各项业务活动。配合帆软报表强大的数据连接、报表制作功能,报表平台可以轻松成为报表中心,为各部门提供各种数据和报表支持。

  1.安装JDK环境:

  2.配置java环境变量:

[ec2-user@localhost ~]# sudo vim /etc/profile.d/java.sh
    JAVA_HOME=/usr/java/latest
    JRE_HOME=JAVA_HOME/jre     PATH=JAVA_HOME/bin:JRE_HOME/bin:PATH
    CLASSPATH=.:JAVA_HOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
    export JAVA_HOME JAVA_BIN PATH CLASSPATH
[ec2-user@localhost ~] source /etc/profile.d/java.sh  [ec2-user@localhost ~] java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

  3.安装tomcat:

[ec2-user@localhost ~] sudo mkdir -pv /www/server/ mkdir: created directory ‘/www’ mkdir: created directory ‘/www/server/’ [ec2-user@localhost ~] sudo chown ec2-user:ec2-user -R /www
[ec2-user@localhost ~] ll /www/ total 4 drwxr-xr-x 2 ec2-user ec2-user 4096 May 28 07:10 server [ec2-user@localhost ~] cd /www/server/
[ec2-user@localhost server] tar zxf /home/ec2-user/apache-tomcat-8.0.52.tar.gz  [ec2-user@localhost server] mv apache-tomcat-8.0.52/ tomcat
[ec2-user@localhost server] sudo vim /etc/profile.d/tomcat.sh     CATALINA_BASE=/www/server/tomcat     PATH=CATALINA_BASE/bin:PATH     export CATALINA_BASE PATH [ec2-user@localhost server] source /etc/profile.d/tomcat.sh

    ###配置tomcat开机启动
[ec2-user@localhost ~]$ sudo vim /etc/rc.local 
    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
su - ec2-user -c "/www/server/tomcat/bin/startup.sh"

  4.tomcat优化过程详见博客:tomcat优化

《帆软报表系统安装指南》

  5.上传帆软报表软件到/www/server/webapps 并解压:

[ec2-user@ip-10-0-2-195 ~] cd /www/server/tomcat/webapps/ [ec2-user@ip-10-0-2-195 webapps] ll
total 4
drwxrwxr-x 10 ec2-user ec2-user 4096 May 28 08:13 WebReport
[ec2-user@ip-10-0-2-195 webapps]$ ls WebReport/
api_demo    btn.css      demo.html       flashplayers       FRDemo.db    jre.exe
picture     scripts      update.jsp      员工信息.xls        bakup        css      demo.js     hello.html   page_demo       plugin.html        update1.jsp  WEB-INF 
通讯录.xls   fr-applet-9.0.jar

  6.启动tomcat服务器:

[ec2-user@localhost ~]$ /www/server/tomcat/bin/startup.sh 
Using CATALINA_BASE:   /www/server/tomcat
Using CATALINA_HOME:   /www/server/tomcat
Using CATALINA_TMPDIR: /www/server/tomcat/temp
Using JRE_HOME:        /usr/java/latest
Using CLASSPATH:       /www/server/tomcat/bin/bootstrap.jar:/www/server/tomcat/bin/tomcat-juli.jar
Tomcat started.

  7.通过Web端进行访问,第一次需要初始化密码。下图为第二次访问截图

《帆软报表系统安装指南》

点赞