ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Debian

ÔÚDebianÏÂÈÃJboss×ÔÆô¶¯

·¢²¼Ê±¼ä:2008-09-02 00:12:00À´Ô´:ºìÁª×÷Õß:Dynsou
1¡¢¿½±´Æô¶¯½Å±¾µ½Æô¶¯½Å±¾Ä¿Â¼ÏÂ(/etc/init.d):

cp bin/jboss_init_redhat.sh /etc/init.d/jboss.sh

ÓÉÓÚûÓÐרÃÅÕë¶ÔdebianµÄjbossÆô¶¯½Å±¾£¬Òò´ËÎÒÃÇ¿½±´Õë¶ÔredhatµÄÆô¶¯½Å±¾£¬È»ºóÐ޸ġ£

2¡¢ÐÞ¸Äjboss.sh¡£

Ìí¼ÓJBOSS_HOST=¡±192.168.30.200¡å

½«¡°/sbin/pidof¡±¸ÄΪ¡°/bin/pidof¡±(ÔÚdebianϵͳÖÐpidofλÓÚbinĿ¼Ï¶ø²»ÊÇsbinĿ¼)

È¥µô¡° | sed ¡¯s/\//\\\//g¡¯¡±ÕâÒ»²¿·Ö¡£

3¡¢Ìí¼ÓjbossÓû§£º

adduser jboss
usermod -G jboss,root jboss

4¡¢½«jbossµÄĿ¼¸Ä±äÊôÖ÷Ϊjboss:

chown -R jboss:jboss jboss

5¡¢É趨×ÔÆô¶¯

update-rc.d jboss.sh start 90 1 2 3 4 5 . stop 20 0 6 .

ÉÏÃæÕâ¾äµÄÒâ˼ÊÇÒÔ90µÄÐòºÅÔÚ1,2,3,4,5¼¶Æô¶¯jboss£¬ÒÔ20µÄÐòºÅÔÚ0,1,6Í£´Ëjboss¡£

ÖÁ´Ë£¬µ±ÏµÍ³Æô¶¯µÄʱºò£¬JBoss½«Ëæϵͳ×Ô¶¯Æô¶¯¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ