Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Valve Install on CentOS 7

Diana Norgaard edited this page Aug 25, 2018 · 7 revisions
  • Install Java 8 if not already there
  • Install tomcat
    • yum install tomcat*
    • systemctl start tomcat
    • systemctl enable tomcat
    • edit /usr/share/tomcat/conf/tomcat-users.xml
      • add admin user
      • add user for access (optional)
    • open up firewall
      • firewall-cmd --permanent --zone=public --add-service=http
      • firewall-cmd --permanent --zone=public --add-port=8080/tcp
      • firewall-cmd --reload
    • Make sure tomcat is running (e.g. http://localhost:8080)
  • Install Valve
    • Easy way is to deploy through manager app (under Deploy -> WAR file to deploy)
      • War file is at https://github.com/usgs/vsc-valve/releases
    • Or you can build from scratch and install manually:
      • From Eclipse project, run build.xml file with dist target. This will create dist/valve3-bin.tar.gz.
      • Untar valve3-bin.tar.gz into /usr/share/tomcat/webapps
      • Ensure tomcat user owns the data and img directories
    • You should now see Valve3 under Manager App.
  • Configure Valve:
    • Edit filters.txt, images.txt, and labels.txt in /usr/share/tomcat/webapps/Valve3 (changes to these later will require reload of Valve3)
      • filters.txt - list of region shortcuts; bounding box of lat/lon
      • images.txt - list of background map images
      • labels.txt - list of labels to display on maps
    • In /usr/share/tomcat/webapps/Valve3/WEB-INF/config, rename dist-valve3.config to valve3.config and edit:
      • title
      • admin.name
      • admin.email
      • timeZoneAbbr
      • logFile
      • labelIndex
      • imageIndex
    • In /usr/share/tomcat/webapps/Valve3/config, rename dist-data.config to data.config and edit.
  • Install and configure VDX from https://github.com/usgs/vsc-vdx
    • Install mariadb
      • yum install mariadb-server
      • systemctl start mariadb
      • systemctl enable mariadb
    • Configure mariadb
      • mysql -u root -p
      • grant all on `v3\_%`.* to 'vdx'@'localhost' identified by 'vdx';
Clone this wiki locally