I am brand new to Linux. After my server died, my server admin brought a new one up for me. The last one was Windows. The new one is Umbutu. I'm happy to learn but, need to get back to deploying software as fast as possible - especially since this cost me a few days.
In windows,
Tomcat was easy. Get a zip file, unzip it, migrate to unzipped dir (cd c:\tomcat_home\bin) and type "startup.bat" or "shutdown.bat" (assuming you've set Java_Home). Then I'd get a console where I can watch tomcat start and watch software deploy.
Now I have Linux. First thing I do is install Tomcat 7.0.29 from the command line to /usr/local/tomcat. After that, I go to the installation dir of Tomcat/bin and type ./shartup.sh. The console prints out some directories and that's it. Over time, I come to realize that Tomcat is already installed and running (Tomcat6). So, I dig around and find two more instances of Tomcat - both of them Tomcat6. One is at /usr/share/tomcat6. I browse to that dir and type ./shutdown.sh. The console starts printing and then fails with "no /conf directory found." So I find the /conf directory. It's at /var/lib/tomcat6/conf. However, there's no tomcat/bin folder in this directory and thus no startup.sh and shutdown.sh. Conf is also pointed to another directory, /etc/tomcat6. I go to etc/tomcat6 hoping I'll find a bin folder there. I don't. But I do find the tomcat-user.xml file so that's helpful. Eventually I find that the start / stop scripts are in one Tomcat6 shell script found at etc/inid.d/tomcat6... I try shutting down but can't seem to figure out the commands to make this shell do so.
I liked it better when Tomcat had one parent directory and everything was laid out in a directory structure I could see without linking all over the place. I get the sense that Linux has come pre-configured with Tomcat as a daemon which is doing me no favors. In any event, can someone tell me how to:
1. stop tomcat
2. restart tomcat with a console so I can see the log4j messages?
3. A good tutorial so that I can learn the relevant parts of Linux I need to be able to work with Tomcat?
Thanks for your help.