请支持原创,认准DannisTang([email protected])
jasperreport报表是网上很有名的开源报表,正好的我最近也在研究这款报表,所以的这里放上在使用的一些小东西,从安装到使用,然后开发到投产,中途遇到的一些问题,我都会放上来跟大家分享,希望能帮助到大家的使用
先到官方网站下载链接上面下载jasperserver,下载.run文件即可,也比较好安装,然后放到你要的安装的linux服务器上面
直接运行即可
[root@jdh-rep-sit local]# ./TIB_js-jrs-cp_7.1.0_linux_x86_64.run
/*开始之后,这中间有很长一段的协议强制你读,直接按回车键就行,慢慢的按,以免按错,我这里就放上最后一段*/
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use
to the public, the best way to achieve this is to make it free software which
everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach
them to the start of each source file to most effectively state the exclusion of
warranty; and each file should have at least the "copyright" line and a pointer
to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
Press [Enter] to continue:
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer network,
you should also make sure that it provides a way for users to get its source.
For example, if your program is a web application, its interface could display a
"Source" link that leads users to an archive of the code. There are many ways
you could offer source, and different solutions will be better for different
programs; see section 13 for the specific requirements.
You should also get your employer (if you work as a programmer) or school, if
any, to sign a "copyright disclaimer" for the program, if necessary. For more
information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
Addenda:
You are additionally bound by the terms contained in the document entitled
"TIB_js-jrs-cp_7.1.0_license" and delivered with this software.
Press [Enter] to continue:
You can read an extended license here: /tmp/TIB_js-jrs-cp_7.1.0_license.txt
Press [Enter] to continue:
到这里之后,就开始真正的安装了,这里我就直接放上ssh命令,然后我会在命令中间以注释的形式讲解安装的步骤
/*这里是是承接上面的,上面最后一段按下回车键之后就会让你确认是否开始安装*/
Do you accept this license? [y/N]: y /*是否接受这个协议?选择y*/
----------------------------------------------------------------------------
JasperReports Server Installation
Please choose an install option below:
[1] Install All Components and Samples (requires disk space of: 1.5 GB)
[2] Custom Install
Please choose an option [1] : 2 /*全部安装还是自定义安装?我这里选择的是自定义安装,选择2*/
----------------------------------------------------------------------------
Installation folder
Please, choose a folder to install JasperReports Server CP 7.1.0
/*选择你要安装的文件路径,我这里用的是自定义的文件安装路径/usr/local/jasperreport,你也可以自己选择*/
Select a folder [/opt/jasperreports-server-cp-7.1.0]: /usr/local/jasperreport
----------------------------------------------------------------------------
Tomcat Installation
Please select the Tomcat configuration you want to use
[1] I want to use the bundled Tomcat
[2] I want to use an existing Tomcat
Please choose an option [1] : 2 /*选择捆绑安装的tomcat还是已有的tomcat,我这里已有tomcat,所以选择了2*/
----------------------------------------------------------------------------
PostgreSQL Installation
Please select the PostgreSQL configuration you want to use
[1] I want to use the bundled PostgreSQL database
[2] I want to use an existing PostgreSQL database
Please choose an option [1] : 1 /*同理,选择捆绑安装的postgresql还是已有的,我本机上没有安装postgresql,所以选择了1*/
----------------------------------------------------------------------------
PhantomJS Installation
Please select the PhantomJS configuration you want to use
[1] I want to use the bundled PhantomJS
[2] I want to use an existing PhantomJS
[3] I don't want to install PhantomJS, use Rhino library instead for rendering
Please choose an option [1] : 3 /*同理,选择捆绑安装phantomjs还是已有的,还是不想安装,我这里不需要这个,所以没有安装这个东西*/
----------------------------------------------------------------------------
Tomcat Port Configuration
Please enter the Tomcat configuration parameters you want to use.
Tomcat Server Port: [8080]: 8888 /*选择你已安装的tomcat的端口,我这里是8888,根据你实际的端口来写*/
----------------------------------------------------------------------------
PostgreSQL Server Parameters
Please enter the port of your database.
Database Server port [5432]: 5432 /*指定你的postgresql端口,因为是捆绑安装的,所以直接选了默认的5432*/
----------------------------------------------------------------------------
Tomcat Directory
Please specify the directory where Tomcat is located.
/*指定你已安装好的tomcat路径,根据实际填写*/
Tomcat directory: [/usr/local/apache-tomcat-7.0.91]: /usr/local/apache-tomcat-7.0.91
----------------------------------------------------------------------------
Install Sample Data
Would you like to install sample databases and sample reports?
/*你是否想安装实例表和数据库?因为我没用过jasperreport,所以还是想看一下实例*/
[Y/n]: y
----------------------------------------------------------------------------
Setup is now ready to begin installing JasperReports Server CP 7.1.0 on your
computer.
Do you want to continue? [Y/n]: y /*这一步是问你是否确认安装*/
----------------------------------------------------------------------------
Please wait while Setup installs JasperReports Server CP 7.1.0 on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Completing the JasperReports Server CP 7.1.0 Setup Wizard
For release notes and further documentation please see,
/usr/local/jasperreport/docs. Our full documentation is also available at
http://community.jaspersoft.com/documentation
Opt-in for JasperReports Server Heartbeat
Help us build better products by opting in [Y/n]: n /*是否参与帮助改进产品计划?这里我选了否*/
----------------------------------------------------------------------------
Setup has finished installing JasperReports Server CP 7.1.0 on your computer.
/*出现了这一句的时候,就表示已经安装成功*/
[root@jdh-rep-sit local]#
到这里为止,已经安装成功了。
接下来,进如到安装文件中再使用这条命令,就可以启动jasperserver了
[root@jdh-rep-sit jasperreport]# sh ctlscript.sh start
waiting for server to start.... done
server started
/usr/local/jasperreport/postgresql/scripts/ctl.sh : postgresql started at port 5432
[root@jdh-rep-sit jasperrreport]
显示除了已经完成,说明安装成功并且正在运行着了
如果有安装不成功的,可以发邮件给我,我可以帮你看一下
请支持原创,认准DannisTang([email protected])