Spike Installation


Spike uses following software.

SQL

i has the user  authentication  information

pass:r

java versionjava-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-7-oracle 1065 /usr/lib/jvm/java-7-oracle
 versions used   jre used::java-7   jdk used::java-7

1)Tomcat-5

location:/usr/local/tomcat

 tomcat running with the jdk-7(java-7-oracle)

start:

go to: /usr/local/tomcat/bin

run the script

use:./startup.sh

shutdown:

go to /usr/local/tomcat/bin

run the script

use:./shutdown.sh

catalina.sh:

no changes to this file yet.

port-config:

goto /usr/local/tomcat/conf/server.xml <Connector port=”8080” protocol=”HTTP/1.1″ //This is the port  configured for the tomcat 
 connectionTimeout=”20000″ 
 redirectPort=”8443” />//this is https configured portconfigure default pagenavigate to the end of the page. <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

configure catalina home
default catalina home page is:/usr/local/tomcat/webapps/ROOT/index.htmlRight now::/usr/local/tomcat/webapps

2)eXist:XML Database version used:1.4.0 latest:1.4.2  //2.0 is about to come.2.0 may have issues with the java7pass:exist12345//exist1234

// It uses Java-7 jdk and jre:
Default configuration documentation @http://exist-db.org/exist/documentation.xml

Sometimes database locks may present and therefore exist software will not start by running startup.sh. 

In such cases move the locks present in folder /usr/local/eXist/webapp/WEB-INF/data to a temporary folder and then run the startup.sh script.

OR

We can execute a script that automatically does the above work for us. Below are the steps for the same.

1. Create a script startExist.sh with the following code.

#!/bin/sh
file1=/usr/local/eXist/webapp/WEB-INF/data/dbx_dir.lck
file2=/usr/local/eXist/webapp/WEB-INF/data/journal.lck
if [ -e $file1 ];
then
mv /usr/local/eXist/webapp/WEB-INF/data/dbx_dir.lck
/usr/local/eXist/webapp/WEB-INF/data/temp
fi
if [ -e $file2 ];
then
mv /usr/local/eXist/webapp/WEB-INF/data/journal.lck
/usr/local/eXist/webapp/WEB-INF/data/temp
fi
/usr/local/eXist/bin/shutdown.sh/usr/local/eXist/bin/startup.sh &

2.  The above script checks for the lock files and if they are present then the lock files are moved to a temp folder.
     Add an entry(highlighted) for startExist.sh in crontab so that it can be executed automatically on reboot. 

# /etc/crontab: system-wide crontab# Unlike any other crontab you don’t have to run the `crontab’
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts –report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.monthly )
@reboot root sh /usr/local/eXist/startExist.sh#

Sidebar