By default, TC VM is configured to use internal domain name which cannot be resolved from the outside. So you need to change the host name to the public domain.
First of all, you need to know your public domain. By default, the format of public domain name is like ec2-<VM IP>.compute-1.amazonaws.com
, where you replace with the public IP of your VM, using dash to separate the 4 numbers instead of dot. For example, my VM’s IP is 50.16.55.96
, then its public domain name is ec2-50-16-55-96.compute-1.amazonaws.com
.
- Login to your VM as
root
- Edit
/etc/sysconfig/network
file, and setHOSTNAME
to your public domain name.
HOSTNAME=ec2-50-16-55-96.compute-1.amazonaws.com
- Restart your VM, using
/sbin/shutdown -r now
.
After the VM is restarted, all the applications are not running because they do not start automatically. You need to manually start them. For this challenge, you only need to start informix, direct, and apache.
- Login VM as
root
user. - Run
/usr/local/apache/bin/apachectl start
to start apache.
- Login VM as
root
. - Switch to
informix
user -su - informix
- Start the informix server -
oninit
. You should see something similar to the below screenshot.
- Login VM as
root
. - start the ldap service -
/etc/init.d/openldap start
- Login VM as
root
. - Swtich to
direct
-su - direct
- Go to jboss bin directory -
jbb
- Start the jboss service -
./start.sh
The JBoss should be starting. You can use “tn” to check the log. Wait until the application is running. It may take several minutes.
- Login VM as
root
. - Swtich to
cache
user -su - cache
- Go to jboss bin directory -
jbb
- Start the jboss service -
./start.sh
You can use “tn” to check the log. Wait until the application finishes starting. It may take several minutes.
- Login VM as
root
. - Swtich to
distui
user -su - distui
- Go to jboss bin directory -
jbb
- Start the jboss service -
./start.sh
You can use “tn” to check the log. Wait until the application finishes starting. It may take several minutes.