Installation and Setup V2: Unterschied zwischen den Versionen

Aus CTS2-LE
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „** <code></code> * Two zip files are shipped with CTS2LE: ** <code>WebCts2LE-Vx.x.x.-load-vocabs.zip</code>: all terminology sources ** <code>WebCts2LE-Vx.x.x.…“)
 
Zeile 1: Zeile 1:
 
** <code></code>
 
** <code></code>
 
* Two zip files are shipped with CTS2LE:
 
* Two zip files are shipped with CTS2LE:
** <code>WebCts2LE-Vx.x.x.-load-vocabs.zip</code>: all terminology sources
+
** <code>WebCts2LE-Vx.x.x.-load-vocabs.zip</code>: standard terminology sources (afterwards loaded with special loaders)
 
** <code>WebCts2LE-Vx.x.x.embedded-jetty.zip</code>: the server itself  
 
** <code>WebCts2LE-Vx.x.x.embedded-jetty.zip</code>: the server itself  
  
Zeile 8: Zeile 8:
 
= Installation =
 
= Installation =
  
* install the server
+
* 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 with '''''&lt;I>''''' in the following)  
** Make directory <code>/etc/webcts2le/'''''<I>'''''</code> (denoted with '''''<H>''''' in the following). Note that <code>/etc/webcts2le</code> is required for now
+
** Make directory <code>/etc/webcts2le/'''''&lt;I>'''''</code> (denoted with '''''<H>''''' in the following). Note that <code>/etc/webcts2le</code> is required for now
** Unzip WebCts2LE-Vx.x.x.embedded-jetty.zip to '''''<H>'''''
+
** Unzip <code>WebCts2LE-Vx.x.x.embedded-jetty.zip</code> to '''''<H>'''''
 +
** Copy <code>'''''<H>'''''/bin/webcts2le.sh</code> to <code>/etc/init.d/</code>
  
* make a directory for the import terminologies, e.g. /home/webcts2le/load-vocabs (denoted with '''''<V>''''' in the following)
+
* Install terminology sources
 +
** Make directory <code>/home/webcts2le/load-vocabs</code> (denoted with '''''<V>''''' in the following)
 +
** Unzip <code>WebCts2LE-Vx.x.x.-load-vocabs.zip</code> to '''''<V>'''''
  
* unzip WebCts2LE-Vx.x.x.-load-vocabs.zip to '''''<V>'''''
+
* Setup standard terminologies
 +
** Go to directory '''''<H>'''''
 +
** Run <code>./bin/SuperLoader.sh -CTS2LE_VOCABS_ROOT '''''<V>'''''</code>
  
* go to directory '''''<H>'''''
+
* Start/Stop server instances
 
+
** Adapt, if neccessary, the <code>BASE_PORT</code> and <code>CTS2LE_VOCABS_ROOT</code> ('''''<V>''''') below the line "* set this on different machines" in <code>webcts2le.sh</code>
* to setup the system with provided terminologies run  ./bin/SuperLoader.sh -CTS2LE_VOCABS_ROOT '''''<V>'''''
+
** Run <code>/etc/init.d/webcts2le.sh start</code>
 
+
** To shutdown the server run <code>/etc/init.d/webcts2le.sh stop</code>
* copy '''''<H>'''''/bin/webcts2le.sh to /etc/init.d/
+
** To start and stop a certain instance directly
 
+
*** go to directory '''''<H>'''''
* adapt, if neccessary, the first three variables below the line "* set this on different machines" in webcts2le.sh
+
*** Run <code>./bin/startup.sh -port 8081 -CTS2LE_VOCABS_ROOT '''''<V>'''''</code> resp. run <code>./bin/shutdown.sh 8081</code> (or alternatively <code>curl -X POST http://localhost:8081/shutdown?token=webcts2le)</code>
 
 
* run /etc/init.d/webcts2le.sh start
 
 
 
* to shutdown the server run /etc/init.d/webcts2le.sh stop
 
 
 
to start and stop a certain instance directly:
 
go to directory '''''<H>'''''
 
run ./bin/startup.sh -port 8081 -CTS2LE_VOCABS_ROOT '''''<V>'''''
 
resp. run ./bin/shutdown.sh 8081   (or alternatively curl -X POST http://localhost:8081/shutdown?token=webcts2le)
 

Version vom 25. August 2016, 21:53 Uhr

  • Two zip files are shipped with CTS2LE:
    • WebCts2LE-Vx.x.x.-load-vocabs.zip: standard terminology sources (afterwards loaded with special loaders)
    • WebCts2LE-Vx.x.x.embedded-jetty.zip: the server itself

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

Installation

  • Install a server instance
    • Choose an instance name, e.g. 'epsos' (denoted with <I> in the following)
    • Make directory /etc/webcts2le/<I> (denoted with <H> in the following). Note that /etc/webcts2le is required for now
    • Unzip WebCts2LE-Vx.x.x.embedded-jetty.zip to <H>
    • Copy <H>/bin/webcts2le.sh to /etc/init.d/
  • Install terminology sources
    • Make directory /home/webcts2le/load-vocabs (denoted with <V> in the following)
    • Unzip WebCts2LE-Vx.x.x.-load-vocabs.zip to <V>
  • Setup standard terminologies
    • Go to directory <H>
    • Run ./bin/SuperLoader.sh -CTS2LE_VOCABS_ROOT <V>
  • Start/Stop server instances
    • Adapt, if neccessary, the BASE_PORT and CTS2LE_VOCABS_ROOT (<V>) below the line "* set this on different machines" in webcts2le.sh
    • Run /etc/init.d/webcts2le.sh start
    • To shutdown the server run /etc/init.d/webcts2le.sh stop
    • To start and stop a certain instance directly