Installation and Setup V2: Unterschied zwischen den Versionen

Aus CTS2-LE
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
* Two zip files are shipped with CTS2LE:
 
* Two zip files are shipped with CTS2LE:
** <code>WebCts2LE-Vx.x.x-load-vocabs.zip</code>: standard terminology sources (denoted with '''''<VOCABS-ZIP>''''' in the following)
+
** <code>WebCts2LE-Vx.x.x-load-vocabs.zip</code>: standard terminology sources (denoted by '''''<VOCABS-ZIP>''''' in the following)
** <code>WebCts2LE-Vx.x.x-embedded-jetty.zip</code>: the server itself (denoted with '''''<SERVER-ZIP>''''' in the following)
+
** <code>WebCts2LE-Vx.x.x-embedded-jetty.zip</code>: the server itself (denoted by '''''<SERVER-ZIP>''''' in the following)
  
 
!!! Ensure that you have sufficient privileges and a distinguished owner for all directories and files created below
 
!!! Ensure that you have sufficient privileges and a distinguished owner for all directories and files created below
Zeile 11: Zeile 11:
 
== (A) Single (blank) instance (''"... to go ..."'') ==
 
== (A) Single (blank) instance (''"... to go ..."'') ==
  
# Create a directory, e.g. <code>/etc/webcts2le/inst</code> (denoted with '''''<H>''''' in the following).
+
# Create a directory, e.g. <code>/etc/webcts2le/inst</code> (denoted by '''''<H>''''' in the following).
 
# Unzip '''''<SERVER-ZIP>''''' to '''''<H>'''''
 
# Unzip '''''<SERVER-ZIP>''''' to '''''<H>'''''
 
# Change to directory '''''<H>'''''
 
# Change to directory '''''<H>'''''
Zeile 28: Zeile 28:
  
 
# Install a server instance
 
# Install a server instance
## Choose an instance name, e.g. 'epsos' (denoted with '''''&lt;I>''''' in the following)  
+
## Choose an instance name, e.g. 'epsos' (denoted by '''''&lt;I>''''' in the following)  
## Create directory <code>/etc/webcts2le/'''''&lt;I>'''''</code> (denoted with '''''<H>''''' in the following). Note that <code>/etc/webcts2le</code> is required for now
+
## Create directory <code>/etc/webcts2le/'''''&lt;I>'''''</code> (denoted by '''''<H>''''' in the following). Note that <code>/etc/webcts2le</code> is required for now
 
## Unzip '''''<SERVER-ZIP>''''' to '''''<H>'''''
 
## Unzip '''''<SERVER-ZIP>''''' to '''''<H>'''''
 
## Copy <code>'''''<H>'''''/bin/webcts2le.sh</code> to <code>/etc/init.d/</code>
 
## Copy <code>'''''<H>'''''/bin/webcts2le.sh</code> to <code>/etc/init.d/</code>
  
 
# Install terminology sources
 
# Install terminology sources
## Create directory <code>/home/webcts2le/load-vocabs</code> (denoted with '''''<V>''''' in the following)
+
## Create directory <code>/home/webcts2le/load-vocabs</code> (denoted by '''''<V>''''' in the following)
 
## Unzip '''''<VOCABS-ZIP>''''' to '''''<V>'''''
 
## Unzip '''''<VOCABS-ZIP>''''' to '''''<V>'''''
  
Zeile 54: Zeile 54:
 
== (A) Single (blank) instance (''"... to go ..."'') ==
 
== (A) Single (blank) instance (''"... to go ..."'') ==
  
# Create a directory, e.g. <code>C:\Program Files\webcts2le\inst</code> (denoted with '''''<H>''''' in the following).
+
# Create a directory, e.g. <code>C:\Program Files\webcts2le\inst</code> (denoted by '''''<H>''''' in the following).
 
# Unzip '''''<SERVER-ZIP>''''' to '''''<H>'''''
 
# Unzip '''''<SERVER-ZIP>''''' to '''''<H>'''''
 
# Change to directory '''''<H>'''''
 
# Change to directory '''''<H>'''''

Version vom 29. August 2016, 20:02 Uhr

  • Two zip files are shipped with CTS2LE:
    • WebCts2LE-Vx.x.x-load-vocabs.zip: standard terminology sources (denoted by <VOCABS-ZIP> in the following)
    • WebCts2LE-Vx.x.x-embedded-jetty.zip: the server itself (denoted by <SERVER-ZIP> in the following)

!!! Ensure that you have sufficient privileges and a distinguished owner for all directories and files created below

!!! Ensure that Java8 is installed on the target machine

Linux

(A) Single (blank) instance ("... to go ...")

  1. Create a directory, e.g. /etc/webcts2le/inst (denoted by <H> in the following).
  2. Unzip <SERVER-ZIP> to <H>
  3. Change to directory <H>
  4. Run ./bin/startup.sh -port 8081 resp. run ./bin/shutdown.sh 8081

(B) Single instance with standard terminologies

  1. (A).1
  2. (A).2
  3. Unzip <VOCABS-ZIP> to <H>/CTS2LE_resources/load-vocabs
  4. (A).3
  5. Run ./bin/SuperLoader.sh
  6. (A).4

(C) Multiple Instances with seperate terminology location and init.d-support

  1. Install a server instance
    1. Choose an instance name, e.g. 'epsos' (denoted by <I> in the following)
    2. Create directory /etc/webcts2le/<I> (denoted by <H> in the following). Note that /etc/webcts2le is required for now
    3. Unzip <SERVER-ZIP> to <H>
    4. Copy <H>/bin/webcts2le.sh to /etc/init.d/
  1. Install terminology sources
    1. Create directory /home/webcts2le/load-vocabs (denoted by <V> in the following)
    2. Unzip <VOCABS-ZIP> to <V>
  1. Setup standard terminologies
    1. Change to directory <H>
    2. Run ./bin/SuperLoader.sh -CTS2LE_VOCABS_ROOT <V>
  1. Start/Stop all server instances
    1. Adapt, if neccessary, the BASE_PORT and CTS2LE_VOCABS_ROOT (<V>) below the line "# set this on different machines" in /etc/init.d/webcts2le.sh
    2. Run /etc/init.d/webcts2le.sh start
    3. To shutdown the server run /etc/init.d/webcts2le.sh stop
  1. Start/Stop a certain server instance directly (via port)
    1. Change to directory <H>
    2. Run ./bin/startup.sh -port 8081 -CTS2LE_VOCABS_ROOT <V> resp. run ./bin/shutdown.sh 8081

Windows

(A) Single (blank) instance ("... to go ...")

  1. Create a directory, e.g. C:\Program Files\webcts2le\inst (denoted by <H> in the following).
  2. Unzip <SERVER-ZIP> to <H>
  3. Change to directory <H>
  4. Run bin\startup.bat -port 8081 resp. open Powershell and run curl -Method Post http://localhost:8081/shutdown?token=webcts2le

(B) Single instance with standard terminologies

  1. (A).1
  2. (A).2
  3. Unzip <VOCABS-ZIP> to <H>\CTS2LE_resources\load-vocabs
  4. (A).3
  5. Run bin\SuperLoader.bat
  6. (A).4