Wednesday 6 September 2017

Jasper Server (6.2) Installation Steps

 Jasper Server Installation Steps

1.     JDK version check, run below command (version should be above 1.6, we have used 1.8):
java –version

2.     Set environment variable:
a.     First find the java path:
i)                Go to directory & find java location
        cd /etc/alternatives/
                        ls -lrta java
lrwxrwxrwx. 1 root root 34 Jan 13 06:56 java -> /usr/java/jdk1.8.0_60/jre/bin/java

ii)            Now save the above path as below on notepad:
/usr/java/jdk1.8.0_60

b.      Go to root and edit the .bash_profile file

        cd
        pwd
                          /root
        ls -lrta
      -rw-r--r--.  1 root root   176 May 20  2009 .bash_profile

using vi editor, Add the below lines in .bash_profile file:
   
        JAVA_HOME=/usr/java/jdk1.8.0_60
            export JAVA_HOME

c.  implement added environment Variable
. .bash_profile

3. Download and install tomcat 8:
cd /tmp
cd /opt/install/
unzip /tmp/apache-tomcat-8.0.29.zip

4.     Provide permission using below command:
chmod +x /opt/install/apache-tomcat-8.0.29/bin/*.sh
  1. Adding PostgreSQL Yum Repository, we are using version 9.4:
OR

6.     Installing PostgreSQL Server:
yum install postgresql94*
7.     Initialize DB:
service  postgresql-9.4 initdb
8.     Now update postgresql.config file using vi editor:
Cd /var/lib/pgsql/9.4/data/
Vi posgresql.config
change this line:
listen_addresses ='localhost'
to
listen_addresses ='*'
9.     Change pg_hba.conf using vi editor:
change below lines:
# IPv4 local connections:
host    all             all             127.0.0.1/32       ident
# IPv6 local connections:
host    all             all             ::1/128            ident
 to

# IPv4 local connections:
host    all             all             127.0.0.1/32        trust
# IPv6 local connections:
host    all             all             ::1/128                  trust

Note – Edit pg_hba.conf  to connectivity with Jasper host.
10.  Now start the PostgreSQL:

/usr/pgsql-9.4/bin/pg_ctl -D /var/lib/pgsql/9.4/data -l logfile start
i)                Verify PostgresSQL Installation :
sudo -u postgres psql
should return the following:
psql (9.4.5)
Type "help" for help.
ii)               Set postgres user password
postgres=# \password
Enter new password: postgres
Enter it again: postgres
postgres=# \q
11.  Now Download Jasper Server Pro version using Jasper support portal of Jasper with user credentials:
Download the build at local and copy to the server using SCP in tmp directory.
Now unzip jasperreports-server-6.2.0-bin.zip file in /opt/install/ directory, using below command:

unzip jasperreports-server-6.2.0-bin.zip  -d /opt/install/

12.  Now go to directory:

Cd /opt/install/jasperreports-server-6.2.0-bin/buildomatic/sample_conf

13.  Now copy postgresql_master.properties from sample_conf  directory to buildomatic/ directory using below command:

cp postgresql_master.properties /opt/install/jasperreports-server-6.2.0-bin/buildomatic/

Go to buildomatic directory:

cd /opt/install/jasperreports-server-6.2.0-bin/buildomatic/

Rename the file postgresql_master.properties to default_master.properties, using below command:

mv postgresql_master.properties default_master.properties

Now Edit default_master.properties file using below command:
vi default_master.properties
modify
 appServerType = tomcat7 
# appServerType = tomcat8
appServerDir = C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0
dbHost=localhost
to be
#appServerType = tomcat7 
appServerType = tomcat8
appServerDir = /opt/install/apache-tomcat-8.0.29/
dbHost=111.33.5.108( IP of postgres DB server)
14.  Now do a test for Jasper Server build:
Go to buildomatic directory:
cd /opt/install/jasperreports-server-6.2.0-bin/buildomatic/
run the below command to test:
/opt/install/jasperreports-server-6.2.0-bin/buildomatic/js-install.sh test
below should be the response of above command:
     BUILD SUCCESSFUL
       Total time: 1 minute 12 seconds
       Checking Ant return code: OK

15.  Now run the below command to install Jasper server:

   /opt/install/jasperreports-server-6.2.0-bin/buildomatic/js-install.sh

    Below should be the response of above command:

    BUILD SUCCESSFUL
      Total time: 9 minutes 18 seconds
      Checking Ant return code: OK
16.  Now Go to Jasper Support Portal:
https://support.jaspersoft.com/
Use user credential available on confluence JasperNote page.
Now go to Jasper “License Keys” link available in below screen shot:

Download the License as per your requirement.
We have downloaded Development Environment Type. This license will be downloaded on local machine. Now use SCP and copy the file from local to server:
Run the below command on your local or where you have downloaded the license file:
Below command is using 111.33.5.108server for Jasper installation:
scp jasperserver.license root@111.33.5.108:/tmp

17.  Copy the Jasperserve.license file from /tmp to root directory.
cp /tmp/jasperserver.license /root
Note : -- At startup JasperReports® Server automatically looks for the jasperserver.license file in the home directory of the system user running the application server. We can also configure different location, in this need to refer installation guide.

18.  Now start Tomcat service:
  
cd /opt/install/apache-tomcat-8.0.29/bin
/opt/install/apache-tomcat-8.0.29/bin/startup.sh
19.         Browse the below link:

Provide user name /password : jasperadmin/jasperadmin

No comments:

Post a Comment