Jumat, 26 Mei 2017

Openmaint Maintenance

Installation Omain maint on ubuntu :
1. Install Tomcat :
# apt-get install tomcat7
- edit / view tomcat default config :
# vi /etc/default/tomcat7
- restart tomcat service :
# service tomcat7 restart
- test the installation :
Open in web browser:
http://server_IP_address:8080
2. Install Additional Package
# apt-get install tomcat7-docs tomcat7-admin tomcat7-examples
3. Install Java Development Kit (Optional)
- Install The Java Development Kit (JDK) enables us to develop Java applications to run in our Tomcat server.
# apt-get install default-jdk
- Installing Apache Ant, which is used to build Java applications, and a source control system, such as git.
# apt-get install ant git
4. Configure Tomcat Web Management Interface
- Add user
# vi /etc/tomcat7/tomcat-users.xml
add :
<tomcat-users>
<user username="admin" password="password" roles="manager-gui,admin-gui"/>
</tomcat-users>
Admin :
http://server_IP_address:8080/manager/html
http://server_IP_address:8080/host-manager/html/
5. Install PostgreSQL
- Client Installation
# apt-get install postgresql-client
-connect to server
# psql -h server.domain.org database user
- DB Server Installation
# apt-get install postgresql postgresql-contrib
- Installing PostGIS, procedural languages, client interfaces, etc
# apt-cache search postgres
- Administrator
# apt-get install pgadmin3
- Basic Server Setup
# sudo -u postgres psql postgres
- set password :
\password postgres
- create database
sudo -u postgres createdb mydb
- Install admin pack
# apt-get install postgresql-contrib
# sudo -u postgres psql < /usr/share/postgresql/8.4/contrib/adminpack.sql
6. Install JODBC
# wget http://jdbc.postgresql.org/do…/postgresql-9.4-1200.jdbc4.jar
# cp postgresql-9.4-1200.jdbc4.jar /usr/share/tomcat/lib/
7. Install openMAINT
- Download the compressed file (ZIP file) corresponding to the last version released.
http://www.openmaint.org/en/download
- copy the libraries in extras/tomcat-libs
# cp extras/tomcat-libs/6.0/postgresql-9.1-901.jdbc4.jar /usr/share/tomcat7/lib
- copy the libraries in scheduler/tomcat-libs
# cp scheduler/tomcat-libs/scheduler-utils-0.1.jar /usr/share/tomcat7/lib
- copy openmaint-{version}.war & renaming it to openmaint.war
# cp openmaint-1.0-2.3.1.war /var/lib/tomcat7/webapps/openmaint.war
- copy cmdbuild-shark-server-{version}.war renaming it to shark.war
# cp openmaint-1.0-2.3.1.war /var/lib/tomcat7/webapps/shark.war
Open browser
http://localhost:8080/openmaint
8. log in the application using one of the provided sample
1. Username: admin - Password: admin
2. Username: demouser - Password: demo
go to Administration -> Setup -> Workflow and set "Enabled" = true and fill the "Server URL" field with the URL of shark (e.g. http://localhost:8080/shark)
stop the Tomcat application server
go to webapps and remove the files openmaint.war and shark.war
go to weapps/shark/META-INF/context.xml and change the database name from ${cmdbuild} to the name that you gave to your database
go to weapps/shark/conf/Shark.conf and set the parameter "org.cmdbuild.ws.url" with the url of your openmaint application (e.g. http://localhost:8080/openmaint)
restart the Tomcat application server
Finish
>
>
>
>
>
>
>
>
===================================
Iklan Berbayar
Hosting X-Student Serendah RM39/=
Dapatakan Hosting Terbaik Malaysia
sms/whatapps/tel : 019-9163077
http://syakirhosting.blogspot.com
http://angel.exabytes.com.my/idevaffiliate.php?id=3206509

Tidak ada komentar:

Posting Komentar