• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat and java on Linux

 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are probably really simple questions, but i am new to linux. I downloaded the jdk1.4.1_02 and tomcat and installed them on the Linux box as root.
When Tomcat runs, does it need to run as the root user, and if so how can i get it to start up automatically if someone restarts the server? When the server restarts, does it always restart as the root user? If so, do my environment variables such as JAVA_HOME, have to be set from the root user point of view (ie when logged in as root) so Tomcat can see them?
Sorry for the confusion, hopefully someone can set me straight.
Thanks
Brian
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, Tomcat can run as a non-root user and it runs as user "tomcat" on my servers.
There had been a distro of Tomcat in RPM form which installed an /etc/init.d tomcat3 (or 4) script and created this user account. Unfortunately, I don't think it's been updated lately.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic