Installation and Setup V2: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(C) Multiple Instances with seperate terminology location and
Billig (Diskussion | Beiträge) |
Billig (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
* Two zip files are shipped with CTS2LE: | * Two zip files are shipped with CTS2LE: | ||
| − | ** <code>WebCts2LE-Vx.x.x | + | ** <code>WebCts2LE-Vx.x.x-load-vocabs.zip</code>: standard terminology sources (denoted with '''''<VOCABS-ZIP>''''' in the following) |
| − | ** <code>WebCts2LE-Vx.x.x | + | ** <code>WebCts2LE-Vx.x.x-embedded-jetty.zip</code>: the server itself (denoted with '''''<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 | ||
| − | + | = Linux = | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | == (A) Single (blank) instance (''"... to go ..."'') == | |
| − | |||
| − | |||
| − | + | # Create a directory, e.g. <code>/etc/webcts2le/inst</code> (denoted with '''''<H>''''' in the following). | |
| − | + | # Unzip '''''<SERVER-ZIP>''''' to '''''<H>''''' | |
| − | + | # Change to directory '''''<H>''''' | |
| + | # Run <code>./bin/startup.sh -port 8081</code> resp. run <code>./bin/shutdown.sh 8081</code> | ||
| − | + | == (B) Single instance with standard terminologies == | |
| − | |||
| − | |||
| − | |||
| − | + | # (A).1 | |
| − | + | # (A).2 | |
| − | + | # Unzip '''''<VOCABS-ZIP>''''' to <code>'''''<H>'''''/CTS2LE_resources/load-vocabs</code> | |
| + | # (A).3 | ||
| + | # Run <code>./bin/SuperLoader.sh</code> | ||
| + | # (A).4 | ||
| + | |||
| + | == (C) Multiple Instances with seperate terminology location and <code>init.d</code>-support == | ||
| + | |||
| + | # Install a server instance | ||
| + | ## Choose an instance name, e.g. 'epsos' (denoted with '''''<I>''''' in the following) | ||
| + | ## Create directory <code>/etc/webcts2le/'''''<I>'''''</code> (denoted with '''''<H>''''' in the following). Note that <code>/etc/webcts2le</code> is required for now | ||
| + | ## Unzip '''''<SERVER-ZIP>''''' to '''''<H>''''' | ||
| + | ## Copy <code>'''''<H>'''''/bin/webcts2le.sh</code> to <code>/etc/init.d/</code> | ||
| + | |||
| + | # Install terminology sources | ||
| + | ## Create directory <code>/home/webcts2le/load-vocabs</code> (denoted with '''''<V>''''' in the following) | ||
| + | ## Unzip '''''<VOCABS-ZIP>''''' to '''''<V>''''' | ||
| + | |||
| + | # Setup standard terminologies | ||
| + | ## Change to directory '''''<H>''''' | ||
| + | ## Run <code>./bin/SuperLoader.sh -CTS2LE_VOCABS_ROOT '''''<V>'''''</code> | ||
| + | |||
| + | # Start/Stop all 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>/etc/init.d/webcts2le.sh</code> | ||
| + | ## Run <code>/etc/init.d/webcts2le.sh start</code> | ||
| + | ## To shutdown the server run <code>/etc/init.d/webcts2le.sh stop</code> | ||
| + | |||
| + | # Start/Stop a certain server instance directly (via port) | ||
| + | ## Change to directory '''''<H>''''' | ||
| + | ## Run <code>./bin/startup.sh -port 8081 -CTS2LE_VOCABS_ROOT '''''<V>'''''</code> resp. run <code>./bin/shutdown.sh 8081</code> | ||
| + | |||
| + | = Windows = | ||
| + | |||
| + | == (A) Single (blank) instance (''"... to go ..."'') == | ||
| + | |||
| + | # Create a directory, e.g. <code>C:\Program Files\webcts2le\inst</code> (denoted with '''''<H>''''' in the following). | ||
| + | # Unzip '''''<SERVER-ZIP>''''' to '''''<H>''''' | ||
| + | # Change to directory '''''<H>''''' | ||
| + | # Run <code>bin\startup.bat -port 8081</code> resp. open Powershell and run <code>curl -Method Post http://localhost:8081/shutdown?token=webcts2le</code> | ||
| + | |||
| + | == (B) Single instance with standard terminologies == | ||
| + | |||
| + | # (A).1 | ||
| + | # (A).2 | ||
| + | # Unzip '''''<VOCABS-ZIP>''''' to <code>'''''<H>'''''\CTS2LE_resources\load-vocabs</code> | ||
| + | # (A).3 | ||
| + | # Run <code>bin\SuperLoader.bat</code> | ||
| + | # (A).4 | ||
Version vom 29. August 2016, 13:41 Uhr
- Two zip files are shipped with CTS2LE:
WebCts2LE-Vx.x.x-load-vocabs.zip: standard terminology sources (denoted with <VOCABS-ZIP> in the following)WebCts2LE-Vx.x.x-embedded-jetty.zip: the server itself (denoted with <SERVER-ZIP> in the following)
!!! Ensure that you have sufficient privileges and a distinguished owner for all directories and files created below
Linux
(A) Single (blank) instance ("... to go ...")
- Create a directory, e.g.
/etc/webcts2le/inst(denoted with <H> in the following). - Unzip <SERVER-ZIP> to <H>
- Change to directory <H>
- Run
./bin/startup.sh -port 8081resp. run./bin/shutdown.sh 8081
(B) Single instance with standard terminologies
- (A).1
- (A).2
- Unzip <VOCABS-ZIP> to
<H>/CTS2LE_resources/load-vocabs - (A).3
- Run
./bin/SuperLoader.sh - (A).4
(C) Multiple Instances with seperate terminology location and init.d-support
- Install a server instance
- Choose an instance name, e.g. 'epsos' (denoted with <I> in the following)
- Create directory
/etc/webcts2le/<I>(denoted with <H> in the following). Note that/etc/webcts2leis required for now - Unzip <SERVER-ZIP> to <H>
- Copy
<H>/bin/webcts2le.shto/etc/init.d/
- Install terminology sources
- Create directory
/home/webcts2le/load-vocabs(denoted with <V> in the following) - Unzip <VOCABS-ZIP> to <V>
- Create directory
- Setup standard terminologies
- Change to directory <H>
- Run
./bin/SuperLoader.sh -CTS2LE_VOCABS_ROOT <V>
- Start/Stop all server instances
- Adapt, if neccessary, the
BASE_PORTandCTS2LE_VOCABS_ROOT(<V>) below the line "# set this on different machines" in/etc/init.d/webcts2le.sh - Run
/etc/init.d/webcts2le.sh start - To shutdown the server run
/etc/init.d/webcts2le.sh stop
- Adapt, if neccessary, the
- Start/Stop a certain server instance directly (via port)
- Change to directory <H>
- Run
./bin/startup.sh -port 8081 -CTS2LE_VOCABS_ROOT <V>resp. run./bin/shutdown.sh 8081
Windows
(A) Single (blank) instance ("... to go ...")
- Create a directory, e.g.
C:\Program Files\webcts2le\inst(denoted with <H> in the following). - Unzip <SERVER-ZIP> to <H>
- Change to directory <H>
- Run
bin\startup.bat -port 8081resp. open Powershell and runcurl -Method Post http://localhost:8081/shutdown?token=webcts2le
(B) Single instance with standard terminologies
- (A).1
- (A).2
- Unzip <VOCABS-ZIP> to
<H>\CTS2LE_resources\load-vocabs - (A).3
- Run
bin\SuperLoader.bat - (A).4