Sanav GC-101 Manuel d'installation Page 36

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 60
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 35
9.2.1) Starting the Device Communication Server
Once your server jar file has been created, you can use the "bin/runserver.sh" command (or "runserver.bat" on
Windows) to start your device communication server as follows:
/zzz> cd $GTS_HOME
/usr/local/OpenGTS_1.2.3> bin/runserver.sh -s template
9.2.1.a) Important note regarding ".sh" and ".bat" command files:
Commands ending with ".sh" or ".bat" MUST be executed from the OpenGTS installation directory. Attempting
to execute these commands from another directory may result in a "ClassNotFoundException" or
"NoClassDefFoundError" error, or similar. (This means that you must cd to $GTS_HOME, then execute the
command as "bin/<command>")
Or, the Perl version of this command can be used without needing to be in the OpenGTS installation directory:
/zzz> $GTS_HOME/bin/runserver.pl -s template
On Windows, the command can omit the "-s" and can be entered as follows:
C:\> cd \OpenGTS_1.2.3
C:\OpenGTS_1.2.3\> \bin\runserver.bat template
The server will initialize and start listening on the port(s) specified in the "dcservers.xml" file for the "template"
server. The default port is 31200. To change the listen port on the command line, a "-port" can be added as follows:
/zzz> $GTS_HOME/bin/runserver.pl -s template -port 31123
Or, on Windows:
C:\OpenGTS_1.2.3\> \bin\runserver.bat template -port:31123
To set listening on port "31123" (for example).
You can also add the command-line option "-debugMode" to enable debug-level logging.
While running in "background" mode, the output logs are stored in the file "$GTS_HOME/logs/template.log". (The
file "template.out" is also created in this directory to catch any stdout/stderr messages which are displayed within the
server that don't use the 'Print' logging feature built into OpenGTS. Typically, this file should alway be empty).
When testing/debugging, you may also start a server "interactively". That is, the server is run in the foreground (ie. not
'backgrounded'), and all logging output is sent to the console instead of the log file. To start a server "interactively", add
the option "-i" to the command line, as follows:
/zzz> $GTS_HOME/bin/runserver.pl -s template -i
(To stop the server in this mode, simply press 'Control-C')
OpenGTS Configuration and Installation Manual Page 36 of 60
Vue de la page 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 59 60

Commentaires sur ces manuels

Pas de commentaire