Introduction
JasperReports Server bundled installers install bundled Apache Tomcat, PostgreSQL servers, and PhantomJS. Normally, these installers run in either graphical or text-based menu mode. However, it's possible to install JasperReports Server silently using an options file. This install mode can be particularly helpful when used as part of another product installation.
Step-by-Step instructions
Open a text editor and add the following lines:
mode=unattended installer-language=en jasperLicenseAccepted=yes prefix={path to install location e.g. C:\jrs63 or /opt/jrs63}
Save the file as options.txt or whatever file you wish and close the text editor
Open a command line window and browse to where the installer has been saved
Run the following command:
Windows:
jasperreports-server-{version}-windows-x64-installer.exe --optionfile options.txt
Linux:
./jasperreports-server-{version}-linux-x64-installer.run --optionfile options.txt
Result
JasperReports Server will install silently then exit. The server will need to be started separately. To do so, execute the ctlscript.sh or ctlscript.bin file with the start option.
Additional Information
To see a list of available options, run the installer from the command line with the --help option.
An example with additional options may look as follows:
mode=unattended installer-language=en jasperLicenseAccepted=yes prefix={path to install location e.g. C:\jrs63 or /opt/jrs63} postgres_installation_type=bundled postgres_locale=en postgres_port=5432 postgres_password=<postgres password> tomcat_installation_type=bundled tomcat_server_port=8080 tomcat_server_shutdown_port=8005 tomcat_server_ajp_port=8009 phantomjs_installation_type=bundled jasperserver_install_sampledata=1
Recommended Comments