How to Install uPortal 4+Postgresql+Centos6/Rhel/Fedora
Uportal
Installation and Configuration
Download
uPortal 4.2 from the below link:
uPortal
Dependencies:
- apache-ant-1.8.2
- Centos 6.5
- apache-maven-3.0.5
- apache-tomcat-7.0.59
- Java 7
- Postgresql
Download
links:
ant:
maven:
tomcat:
#cp
/root/Downloads/apache-ant-1.8.2-bin.tar.gz /opt/uportal_dep
#cp
/root/Downloads/apache-maven-3.0.5-bin.tar.gz /opt/uportal_dep
#cp
/root/Downloads/apache-tomcat-7.0.59.tar.gz /usr/local
#cd
/usr/local
#mv
apache-tomcat-7.0.59 uPortal_tomcat
#vim
~/.bashrc
add
below lines:
export
ANT_HOME=/opt/uportal_dep/apache-ant-1.8.2
export
M2_HOME=/opt/uportal_dep/apache-maven-3.0.5
export
M2=$M2_HOME/bin
export
PATH=$M2:$PATH
export
JAVA_HOME=/usr
export
TOMCAT_HOME=/usr/local/uPortal_tomcat
and
save it by :wq
#source
~/.bashrc
#vim
/usr/local/uPortal_tomcat/conf/catalina.properties
add
shared.loader=${catalina.base}/shared/lib/*.jar
and
save it by :wq
#vim
/usr/local/uPortal_tomcat/bin/setenv.sh
export
JAVA_OPTS="$JAVA_OPTS -XX:+PrintCommandLineFlags
-XX:MaxPermSize=384m -Xms1024m -Xmx1024m
-Djsse.enableSNIExtension=false"
and
save it by :wq
#vim
/usr/local/uPortal_tomcat/bin/startup.sh
export
CATALINA_OPTS=”-Xms512M -Xmx1024M”
and
save it by :wq
#su
– postgres
$psql
=#create
database uportal;
=#create
user uportal with password 'uportal';
=#grant
all privileges on database uportal to uportal;
=#\q
$exit
#cd
/opt
#cp
/root/Downloads/uPortal-4.2.0-M1.tar.gz /opt
#tar
-zxvf uPortal-4.2.0-M1.tar.gz
#cd
uPortal-4.2.0-M1
#cd
uportal-db
#vim
pom.xml
uncomment
postgresql dependency
if
your postgresql is below 9.2 version then it should be
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>8.2-507.jdbc3</version>
<scope>compile</scope>
</dependency>
if
your postgresql is 9.2 later then it should be
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.2-1003-jdbc3</version>
<scope>compile</scope>
</dependency>
#cd
/opt/uPortal-4.2.0-M1/filters
#vim
local.properties
comment
hsql lines
add
postgresql below lines
##
Database Connection Settings (Uncomment the Maven Filters section in
rdbm.properties)
environment.build.hibernate.connection.driver_class=org.postgresql.Driver
environment.build.hibernate.connection.url=jdbc:postgresql://localhost:5432/uportal
environment.build.hibernate.connection.username=uportal
environment.build.hibernate.connection.password=uportal
environment.build.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
environment.build.hibernate.connection.validationQuery=select
1
and
save it by :wq
#cd
/opt/ uPortal-4.2.0-M1
#cp
build.properties.sample build.properties
add
server.home=/usr/local/uPortal_tomcat
and
save it by :wq
#cd
/opt/uPortal-4.2.0-M1
#ant
dbtest > antdbtest.log &
#tail
-f antdbtest.log
After
getting build successful
#ant
clean initportal > antinit.log &
After
getting build successful
Restart
Tomcat as below
#cd
/usr/local/uPortal_tomcat
#cd
bin
#./shutdown.sh
check
whether tomcat process is running or not by
#ps
-efa | grep tomcat
check
whether any process is running at port 8080 by
#netstat
-tlnp | grep '8080'
#./startup.sh
open
the web browser and check
localhost:8080/uPortal
references:
No comments:
Post a Comment