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.
ssh -t remote server sudo if config is not working.
ifconfig is one word not two (if config)
You didn't answer about your distro. If it's a Debian/Ubuntu could be Apparmor, if it's RHEL/Centos/Fedora could be SELinux
Looking at the logs in /var/log could give you a hist of what's happening.
Also you didn't answer if the script works locally, but I guess it does.
did you make a service named tomcat using the link i shared with you. I m pretty sure if you follow the step you will end up with Tomcat working remotely.
Local script is working fine. when I run ifconfig It's not working. I have linux box and I am not able to see log in server log file..like catalina.log
-Pingal123.... Can you please share link..I am not seeing any link here....
Local script is working fine. when I run ifconfig It's not working
What you mean that ifconfig is not working? You get an error from sudo, or what? Please try to be more specific, so we can help you.
Also you didn't mention the Linux distribution you're using.
Re: pinga's link, it's 4-5 posts before.
Anyway you can try to run tomcat using your username, so you won't need sudo. Log-in the server, become root and run:
Code:
chown -R bhaumik /opt/tomcat/6.0.29/apache-tomcat
Then logout and run from your host the ssh command without the sudo
Local script is working fine. when I run ifconfig It's not working. I have linux box and I am not able to see log in server log file..like catalina.log
-Pingal123.... Can you please share link..I am not seeing any link here....
I tried to start tomcat remotely, It's not coming up. Locally it's seems working fine.
I tried command ssh remoteserver sh catalina.sh start and startup.sh
but It's not working.
Using CATALINA_BASE: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using CATALINA_HOME: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using CATALINA_TMPDIR: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/temp
Using CATALINA_OUT: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using JRE_HOME: /usr/java/jre-1.6.0-sun
Using CLASSPATH: /opt/tomcat/6.0.29/apache-tomcat-6.0.29/bin/bootstrap.jar
I am preassume when it's writing to catalina.log file it's creating some problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.