This section provides quick-start instructions for installing Tanzu tc Server, creating a tc Runtime instance, and starting the tc Runtime instance.
If you are upgrading an existing tc Server installation, see the upgrade documentation. If you are installing tc Server Developer Edition, see Install tc Server Developer Edition.
Please visit Obtaining tc Server for information on how to download tc Server distribution.
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 root
user. See Setting Up Unix Users for tc Server. In this documentation the user is assumed to be 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 sudo
privileges and use su -s /bin/sh tc-server
to become the user. It is not recommended that the tc-server
user have sudo privileges. On Windows, this should be a user with Administrator
privileges.
Create a directory to contain the tc Runtime component (such as ``) if it doesn't already exist. The user should be be able to run sudo (Unix) or have Administrative privileges (Windows). This does not need to be the tcserver
user mentioned above as permissions will be set up later for that user.
Unix example:
sudo mkdir -p /opt/tanzu/tc-server/10.1
Windows example (Windows Command Prompt "cmd.exe"):
mkdir "%programfiles%\Tanzu VMware tc Server\10.1"
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 `` in the preceding step and downloaded the Standard Edition file to your home directory:
Unix (tar.gz) example:
cd /opt/tanzu/tc-server/10.1
sudo tar xzf ~/tanzu-tc-server-10.1.20.A.tar.gz
chown -R tc-server:tc-server /opt/tanzu/tc-server/10.1
Windows (zip):
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.
Add tcserver
to your PATH variable. This procedure varies based on your operating system and your own internal policies. The following are the recommended methods
Unix: Create a file named /etc/profile.d/tc-server.sh
and add the following
export PATH=/opt/tanzu/tc-server/10.1:$PATH
Change 10.1.20.A to the version you downloaded if different.
You'll need to log out and back in our source that file. Example
. /etc/profile.d/tc-server.sh
Windows:
Advanced
tabSystem Variables
select Path then click Edit
From your terminal window or Command Prompt, change to the tc Runtime directory and execute the tcserver
command to create a basic tc Runtime instance (called myserver
in the examples).
Unix/Windows example:
tc-server-10.1 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 tc-server-10.1
script. If not you will need to call the script directly from the directory, however, it is recommended to set up the PATH variable.
This is a quick example. It is recommended to use instance descriptor files to create and manage instances. The create-from-file
command of tc-server-10.1
is used to create instances from instance descriptor files.
Execute the tc-server-10.1
command to start the new tc Runtime instance.
Unix example:
tc-server-10.1 start myserver
Windows example:
tc-server-10.1 install myserver
tc-server-10.1 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. It may also be necessary to append the .bat
to the script name - tc-server-10.1.bat
To confirm that the tc Runtime instance is running, invoke its welcome page in a browser. Use the URL http://host:8080
, where host
is the name or IP address of the computer on which the tc Runtime instance is running (localhost
if local).