This section provides quick-start instructions for installing Pivotal tc Server Standard Edition, creating a tc Runtime instance, and starting the tc Runtime instance.
These steps will install and setup tc Server similar to how the RPM packages install tc Server. The directory locations are recommended but not required.
Download and install a JDK or JRE on the computer on which you are installing tc Server. See Supported Configurations and System Requirements. A JDK is preferred as there are additional debug tools such as jstack which makes it easier to obtain thread dumps.
Determine the user that is going to create and run the tc Runtime instances, and create it if necessary. Consider creating a user dedicated to tc Server tasks and disabling its interactive login for security purposes. On Unix, never run tc Runtime instances as the
rootuser. See Setting Up Unix Users for tc Server.
Log in to the computer on which you are installing tc Server as the appropriate user. On Unix, if you have disabled interactive login, login as a user with
sudoprivileges and use
su -s /bin/sh tcserverto become the user. It is not recommended that the
tcserveruser have sudo privileges. On Windows, this should be a user with
Create a directory to contain the tc Runtime component (such as
/opt/pivotal/tcserver) if it doesn’t already exist. The user should be able to run sudo as part of the install. The user should be be able to run sudo (Unix) or have Administrative privileges (Windows). This does not need to be the
tcserveruser mentioned above as permissions will be set up later for that user.
sudo mkdir -p /opt/pivotal/tcserver
See Obtaining tc Server for instructions on how to download tc Server Standard Edition. For UNIX based platforms the .tar.gz file is recommended and .zip is recommended for Windows.
This is all that is required to install tc Runtime.
For example, in Unix, if you specified a directory called
/opt/pivotal/tcserverin the preceding step and downloaded the Standard Edition file to your home directory:
Unix (tar.gz) example:
cd /opt/pivotal/tcserver sudo tar xzf ~/pivotal-tc-server-standard-4.0.2.RELEASE.tar.gz
In Windows Explorer, double-click the ZIP file you downloaded to launch the Windows Extraction Wizard and extract the file into the directory you created in the preceding step. After you unzip the ZIP file you will have a directory called
\opt\pivotal\tcserver\standard/pivotal-tc-server-standard-4.0.2.RELEASE. This directory contains all the tc Runtime files and directories.
Unix: Create a file named
/etc/profile.d/tcserver.shand add the following
Change 4.0.2.RELEASE to the version you downloaded if different.
You’ll need to log out and back in our source that file. Example
- Open Control Panel
- Open System
System Variablesselect Path then click
- Add \opt\pivotal\tcserver\standard\standard-4.0.2.RELEASE
- Click Ok
- Restart command prompt if open
From your terminal window or Command Prompt, change to the tc Runtime directory and execute the
tcservercommand to create a basic tc Runtime instance (called
myserverin the examples).
tcserver create myserver
The example commands used in this documentation assume that the PATH environment variable has been updated to point to the directory containing the
tcserverscript. If not you will need to call the script directly from the directory, however, it is recommended to set up the PATH variable.
tcservercommand to start the new tc Runtime instance; use the
-ioption to specify the directory in which the instance is located.
tcserver start myserver
tcserver install myserver tcserver start myserver
Windows Note: Due to tc Runtime instances running as Windows Services it is necessary to
install the instance as a service prior to starting the instance.
To confirm that the tc Runtime instance is running, invoke its welcome page in a browser. Use the URL
host is the name or IP address of the computer on which the tc Runtime instance is running (
localhost if local).