Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've set up my CentOS server with Java 1.6.0_24 and Apache Tomcat 7.0.42. I then successfully (I thought) started Tomcat, and went to a browser to see if I could access it. I've tried putting the IP Address directly into the browser and the same but with :8080 after it, but it always times out.
to see if iptables is running. You can do a quick test by stopping iptables and trying to connect:
Code:
service iptables stop
# to start again
service iptables start
If you haven't added rules to allow this traffic you will not be able to connect.
You don't provide any info on how you have set up tomcat, so your mileage mat vary, but have a look here: Install Tomcat 7 on CentOS / RHEL (especially step 6).
Thanks for your quick responses. Here is what I have found:
iptables is running
I believe tomcat is running after I run the startup.sh file. I used ps -ef | grep java as I read elsewhere online, and the result looks correct to my untrained eye.
I wasn't sure what you meant by /tomcat/ so I tried http://<ip>/tomcat/ which didn't work.
I am now looking at step 6 of the tutorial you suggested. I'll be surprised if Tomcat isn't setup right, as I followed a step-by-step guide as part of setting up a program called OpenGTS which I'm trying to use this server for.
Sorry I misunderstood your first instructions. When I stop iptables I do indeed get the correct splash screen. I take it this means that something in the iptables configuration needs changing so that this connection gets let through?
Sorry I misunderstood your first instructions. When I stop iptables I do indeed get the correct splash screen. I take it this means that something in the iptables configuration needs changing so that this connection gets let through?
Regards,
Andrew
Correct! You now established that iptables is blocking the connection.
You can now try step 6 from the previous posted link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.