F I R S T   S T E P S :   B R I N G   J B O S S   T O   L I F E  
This solution will run JBoss as super user and therefore when someone can break 
into your system this is a security problem. Whenever you want to start a service at 
a port lower than 1024 you have to run it as super user like web server port 80. A 
way to go around this is to call the JBoss script as another user (like  nobody ) and 
redirect the port 8080 to port 80 (see Unix command  ipchain  or  iptables  for 
more). 
Copy the JBoss 3.0 distribution at its destination and check that you can let it run as super 
user.  
Take this script, save it in your /etc/init.d (could also be somewhere else like /sbin/init.d etc.) 
and make it runnable by the super user.  
Listing 2 2, JBoss  init.d  shell script 
################################ 
### Contents of jboss 
### 
### (Make sure #!/bin/sh is the first line of the file and the file 
### has execute permissions for root.) 
################################ 
#!/bin/sh 
# 
# Startup script for JBOSS, the J2EE EJB Server 
# 
# chkconfig: 2345 95 15 
# description: JBoss is an EJB Server 
# processname: jboss 
# pidfile: /var/run/jboss.pid 
# config: /usr/local/jboss/conf/default/jboss.conf 
# logfile: /usr/local/jboss/log/server.log 
# 
# version 1.0   
# version 1.1   kjenks   Start Tomcat, too. 
# 
# Source function library. 
. /etc/rc.d/init.d/functions 
#SET THE FOLLOWING LINE TO YOUR JAVA_HOME 
export JAVA_HOME=/usr/java/bin 
#SET THE FOLLOWING LINE TO YOUR CORRECT JBOSS_HOME 
export JBOSS_HOME=/usr/local/jboss 
export PATH=$PATH:$JBOSS_HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin 
21






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

best web hosting

 

Our partners: PHP: Hypertext Preprocessor Cheap Web Hosting JSP Web Hosting Ontario Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Java Hosting Cheapest Hosting

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved