To install and start a PTV xServer on your local machine please proceed with the following steps.
PTV xServer software comes bundled in a compressed archive. Simply extract the content to a designated folder. We suggest to use a path such as D:\xRoute
for windows, or /opt/xRoute
for Linux systems. Make sure that the current user is granted read, write and execute permission for the whole folder.
A PTV xServer requires a valid license.ptv
file to start and use certain features. Copy it into the top level of your designated folder. If you need a new license file, please contact your PTV sales representative.
A PTV xServer requires a 64-bit Java 8 installation. Furthermore the environment variable JAVA_HOME
has to point to the location of the Java installation (the directory containing the bin directory). If you do not want to change the value of the JAVA_HOME
variable, you can use the environment variable XSERVER1_JAVA_HOME
.
A PTV xServer comes with a set of batch-files that can be used to run the servers either from a console (command prompt) or as a service.
On Windows operating systems, these batch files are:
installService.bat
This adds the PTV xServer to the list of Windows services in startup mode automatic. The service will automatically start at the next system logon.
uninstallService.bat
This removes the server from the list of Windows services.
startService.bat
This starts the PTV xServer if it is installed as a Windows service. You may also use the Windows services console to configure, start and stop the service.
stopService.bat
This stops the server, if it is running as a Windows service.
<xserver>.bat
This starts the server in console mode: you will see logging output in your console window. This option is useful for experiencing the server before using it as a service.
On Linux operating systems, there is a shell script <xserver>.sh
with the following options:
start
Start the server as a daemon process
stop
Stop a running PTV xServer daemon
restart
Stop and start the PTV xServer daemon
console
Run the PTV xServer from the current shell as a user process.
Typically, you will place the script in your /etc/init.d
directory and start the server from there.
After installing the server and deploying the license file, make sure your installation is correct:
Start the server from the console. Wait for the message that reads "server started in ... ms"
.
Start a browser and open http://localhost:port
. The default port depends on the PTV xServer type; the port used is also listed at the very beginning of the console output. You should now see the PTV xServer Management Console page.
Follow the link to the Raw Request Runner. Select a sample request from the request selector and send the request. You should see the response message as well as the HTTP status code, which should be a 200
.
Go to the console you started the server from and shut down the server with CTRL-C.
PTV xServer can be configured in many ways and lots of additional geographical content can be installed. Please refer to the other chapters in the Administrator's Guide to learn more about your options.
Copyright © 2024 PTV Logistics GmbH All rights reserved. | Imprint