Step 1. Prepare your servers
To install AM in a demo or test environment with a single DS server acting as the configuration store, identity store and CTS token store, perform the following prerequisite tasks:
- Check disk space
-
For initial installation, make sure you have at least 10 GB free disk space.
You can find more information on disk storage requirements in Deployment requirements and in Sizing systems in the DS documentation.
- Prepare a fully qualified domain name (FQDN)
-
You must use fully qualified domain names. AM uses HTTP cookies to keep track of sessions for single sign-on (SSO), and setting and reading cookies depends on the server name and domain.
You can find information on preparing an FQDN in Prepare a fully qualified domain name.
- Install a supported Java development kit (JDK)
-
Because AM and DS are Java web applications, you must download and install a supported JDK. You can find a list of supported JDK versions in Java requirements and in Java in the DS documentation.
You can find information on installing a JDK in Install a JDK and Apache Tomcat.
- Install a supported web container
-
AM can run in a number of web application containers. For the purposes of this evaluation, download Apache Tomcat.
You can find a list of supported versions in Application containers.
You can find information on installing Apache Tomcat in Install a JDK and Apache Tomcat.
- Download PingAM and PingDS
-
The Backstage download site hosts downloadable versions of AM and DS.
You can find a list of supported operating systems in the Operating system requirements and in Operating systems in the DS documentation.
The instructions to set up the software are written for use on a UNIX-like system. If you are running Microsoft Windows, adapt these examples accordingly. |
Prepare a fully qualified domain name
Before deploying and installing AM and DS, assign your AM server a DNS alias, such as am
.example.com
and your DS server a DNS alias, such as ds.example.com
.
You can add DNS aliases by editing your hosts file.
If you already have a DNS server set up, or use a service, such as localtest.me, you can use those instead of editing your hosts file. |
-
Add the aliases to your hosts file using your preferred text editor. For example:
# Edit /etc/hosts $ sudo vi /etc/hosts Password: $ cat /etc/hosts | grep am 127.0.0.1 localhost am.example.com ds.example.com
-
Proceed to install a JDK and Apache Tomcat.
Install a JDK and Apache Tomcat
AM runs as a Java web application inside an application container.
Apache Tomcat is an application container that runs on a variety of platforms.
The following instructions are loosely based on the RUNNING.txt
file delivered with Apache Tomcat:
-
Extract the JDK download file:
$ mkdir -p /path/to/JDK $ unzip ~/Downloads/openjdk-X_bin.zip -d /path/to/JDK
-
Extract the Apache Tomcat download file:
$ mkdir -p /path/to/tomcat $ unzip ~/Downloads/apache-tomcat-X.X.XX.zip -d /path/to/tomcat
-
Create an Apache Tomcat script to set the
JAVA_HOME
environment variable to the file system location of the JDK and to set the heap and metaspace size appropriately. For example:-
Unix/Linux
-
Windows
Create a
setenv.sh
script in/path/to/tomcat/bin/
:export JAVA_HOME="/path/to/usr/jdk" export CATALINA_OPTS="$CATALINA_OPTS -Xmx2g -XX:MaxMetaspaceSize=256m"
Create a
setenv.bat
script in\path\to\tomcat\bin\
:PS C:\path\to> $env:JAVA_HOME += ";C:\path\to\usr\jdk" PS C:\path\to> $env:CATALINA_OPTS += ";-Xmx2g -XX:MaxMetaspaceSize=256m"
-
-
(UNIX-like systems only) Make the scripts in Apache Tomcat’s
bin/
directory executable:$ chmod +x /path/to/tomcat/bin/*.sh
-
If you have a custom installation that differs from the documented Apache Tomcat installation, make sure to set Apache Tomcat’s
CATALINA_TMPDIR
to a writable directory to ensure the installation succeeds. This temporary directory is used by the JVM (java.io.tmpdir
) to write disk-based storage policies and other temporary files. -
Make sure your system’s firewall doesn’t block the port that Apache Tomcat uses (
8080
by default).Read the Apache documentation for instructions for allowing traffic through the firewall on a specific port for the version of Apache Tomcat on your system. A variety of firewalls are in use on Linux systems. The version your system uses depends on your specific distribution.
-
Start Apache Tomcat:
$ /path/to/tomcat/bin/startup.sh
It might take Apache Tomcat several seconds to start. When it has successfully started, you should see information indicating how long startup took in the
/path/to/tomcat/logs/catalina.out
log file.INFO: Server startup in 4655 ms
-
Go to Apache Tomcat’s homepage. For example,
http://am.example.com:8080
.If Apache Tomcat works correctly, the homepage displays a success message: "If you’re seeing this, you’ve successfully installed Tomcat. Congratulations!".
-
Proceed to Step 2. Prepare your datastore.