1 Archiver Appliance Quickstart
user@user:~/Downloads# ls
archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz
1.1 License
1.2 System requirements
A recent version of Linux
Definitely 64 bit Linux for production systems. If using RedHat, we should aim for RedHat 6.1Sun Java JDK 1.8
Definitely the 64 bit version for production systems. We need the JDK, not the JRE.A recent version of Tomcat 7.x
Preferably apache-tomcat-7.0.61 or later.
A recent version of Tomcat 7.x
Preferably apache-tomcat-7.0.61 or later.Firefox or Chrome
The management UI works best with a recent version of Firefox or Chrome.A recent version of MySQL mysql-5.1 or later
If persisting configuration to a database.
1.3 System Requirements Installation
JDK 1.8 installation
Sun Java JDK 1.8 is download here.Here is the quick download log for all Linux user. In my case JDK 1.8 download the /opt directory.
root@user:/opt# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2
Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-linux-x64.tar.gz"
Untar the downloaded file.
root@user:/opt# tar -xzf jdk-8u66-linux-x64.tar.gz
root@user:/opt# ls
jdk1.8.0_66
Here is the installation log for Debian Linux user.
root@user:/opt# update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 1041
root@user:/opt# update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 1041
root@user:/opt# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /opt/jdk1.8.0_66/bin/java 1041 manual mode
2 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /opt/jdk1.8.0_66/bin/java to provide /usr/bin/java (java) in manual mode
root@user:/opt# java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
If you are using CentOS, here is the installation log.
[root@user opt]# alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 2
[root@user opt]# alternatives --config java
There are 4 programs which provide ’java’.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
3 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
4 /opt/jdk1.8.0_66/bin/java
Enter to keep the current selection[+], or type selection number: 4
[root@user opt]# alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_66/bin/jar 2
[root@user opt]# alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 2
[root@user opt]# alternatives --set jar /opt/jdk1.8.0_66/bin/jar
[root@user opt]# alternatives --set javac /opt/jdk1.8.0_66/bin/javac
[root@user opt]# java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Tomcat 7.x Download
Tomcat 7.x is download here.user@user:~/Downloads# ls
apache-tomcat-7.0.65.tar.gz
archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz
Chrome installation
Chrome is download here.Here is the chrome installation log for Debian Linux user.
user@user:~/home/user/Downloads# ls
apache-tomcat-7.0.65.tar.gz
archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz
google-chrome-stable_current_amd64.deb
user@user:~/Downloads$ su
Password:
root@user:/home/user/Downloads# dpkg -i google-chrome-stable_current_amd64.deb
root@user:/home/user/Downloads# aptitude install google-chrome-stable
1.4 Archiver Appliance Quickstart Guide
new archiver appliance. These steps are not meant for production deployments, but are
meant for evaluating and getting to know the system. For more details on how to deploy
in a cluster or in a production environment, please see the Installation guide.
1
Make sure you have a recent version of Sun Java 1.8 from Oracle by running java -version.You should see something like so
user@user:~$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
2
The downloaded installation package to a Linux machine into a brand new folder. Thisshould give you a tar.gz file like archappl vx.x.x.tar.gz. Also, Tomcat package into a
brand new folder.
user@user:~$ mkdir archappl
user@user:~$ cd Downloads
user@user:~/Downloads$ mv archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz apache-tomcat-7.0.65.tar.gz ./../archappl
user@user:~/Downloads$ cd ../archappl
user@user:~/archappl$ ls
apache-tomcat-7.0.65.tar.gz archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz
3
Untar the archappl vx.x.x.tar.gz. This should untar into 4 WAR files and a bash scriptlike so
user@user:~/archappl$ tar -xzf archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz
user@user:~/archappl$ ls
Apache_2.0_License.txt install_scripts RELEASE_NOTES apache-tomcat-7.0.65.tar.gz
LICENSE retrieval.war
sample_site_specific_content engine.war NOTICE
etl.war quickstart.sh mgmt.war
archappl_v0.0.1_SNAPSHOT_23-September-2015T07-41-14.tar.gz
4
Run the script like souser@user:~/archappl$ ./quickstart.sh apache-tomcat-7.0.65.tar.gz
This should start the Tomcat process in the foreground. Once all the webapps have been initialized (it takes about 2-5 minutes), you should see a log message in the console All components in this appliance have started up. To stop the appliance, use a CTRL-C in the console.
Bibliography
[1] The EPICS Archiver Appliance : “archiver appliance” http://slacmshankar.github.io/epicsarchiver_docs/index.html (2016.01.06)[2] Sang-il Lee(2014), “Archiver Appliance 구성”, RISP control group technical document
0 개의 댓글:
댓글 쓰기