The OLFS
comes with a default configuration that is compatible with the
default configuration of the BES
. If you perform a default installation
of both, you should get a running Hyrax server that will be pre-populated
with test data suitable for running integrity tests.
-
Install tomcat.noarch:
sudo yum install tomcat.noarch
. -
Create the directory
/etc/olfs
, change its group to tomcat, and set it group writable:mkdir /etc/olfs chgrp tomcat /etc/olfs chmod g+w /etc/olfs)
Alternatively, get Apache Tomcat-8.x from the Apache Software Foundation and install it wherever you’d like—for example,
/usr/local/
.
Follow the steps below to download the latest OLFS distribution:
-
Visit the official OPeNDAP website and go to Latest Release.
-
Scroll down the following page until you reach the section entitled Linux Binaries
-
Directly underneath, you should see the
OLFS
download link, named something likeOLFS_x.x.x._Web_Archive_File
. Click to download. -
The downloaded file will be named something like:
olfs-x.x.x-webapp.tgz
.
Unpack the jar file with the command
tar -xvf olfs-x.x.x-webapp.tgz
This will unpack the files directory called olfs-x.x.x-webapp
.
Inside of the olfs-x.x.x-webapp
directory, locate opendap.war
and copy it into
Tomcat’s webapps
directory:
cp opendap.war /usr/share/tomcat/webapps
Or, if you installed tomcat from the ASF distribution, its web application directory, for example…
/usr/local/apache-tomcat-8.5.34/webapps
Recent versions of CentOS-7 are shipped with default SELinux settings that prohibit Tomcat from reading or opening the opendap.war file. This can be addressed by issuing the following two commands:
sudo semanage fcontext -a -t tomcat_var_lib_t /var/lib/tomcat/webapps/opendap.war sudo restorecon -rv /var/lib/tomcat/webapps/
After this you will need to restart Tomcat:
sudo service tomcat restart
If you followed this tutorial and are using a YUM-installed Tomcat,
it should already be integrated into the system with a tomcat
entry
in /etc/init.d
and you should be able to…
-
Start Tomcat:
sudo service tomcat start
-
Stop Tomcat:
sudo service tomcat stop
You can verify that the server is running by visiting http://localhost:8080/opendap/. If you have installed Hyrax on a virtual machine, replace localhost with the virtual machine’s IP address.
Note
|
If you are installing the OLFS in conjunction with ncWMS2 version 2.0 or higher, copy both the opendap.war and the ncWMS2.war files into the Tomcat webapps directory. (Re)Start Tomcat.
|