Labs - IPs and Ports

Hi,

I ran apache tomcat after replacing the port from 8080 to 9090. But still it says the task is not completed.

Check:

Peek 2020-07-22 16-39

@Ayman

I manually tried the commands also updated the port number in the file to 9090.
But it is showing as Task not done.

@raghumanne

As seen from the screenshots, you did not follow the step of changing directory by using:
cd /opt/
then you can run the two other commands:
sudo sed -i ‘s/8080/9090/g’ apache-tomcat-8.5.53/conf/server.xml
sudo ./apache-tomcat-8.5.53/bin/startup.sh

Exact same issue. Ran all of the commands, made sure the port number is changed to 9090. But it will confirm that we are correct.

lol

after running the port change command run the command for stopping the server and then start it again i.e, run sudo ./apache-tomcat-8.5.53/bin/shutdown.sh first and then sudo ./apache-tomcat-8.5.53/bin/startup.sh again it’ll fix the issue

1 Like

This works.
Thank you :slight_smile: