java-source

4、安装jsvc

    #cd /usr/local/tomcat/bin

    #tar xvfz jsvc.tar.gz

    #cd jsvc-src

    #sh support/buildconf.sh

    #chmod 755 configure

    #./configure --with-java=/usr/local/java (改成你的JDK的位置)

    #make

 

#cp /usr/local/tomcat/bin/jsvc-src/native/Tomcat5.sh /etc/init.d/tomcat 移动文件tomcat5.sh到/etc/init.d/里面并改名为tomcat

    #chmod 755 /etc/init.d/tomcat

    #vi /etc/init.d/tomcat

 

除环境变量外,修在最前面功能性注释:

#!/bin/sh
# chkconfig: 345 88 14
# description: Tomcat Daemon

 

#chkconfig --add tomcat

#chkconfig --list tomcat

 

分类:

技术点:

相关文章:

  • 2021-09-01
  • 2021-12-06
  • 2022-02-01
  • 2022-01-20
  • 2021-11-07
  • 2022-12-23
  • 2022-01-01
  • 2022-01-01
猜你喜欢
  • 2021-04-23
  • 2021-09-16
  • 2021-06-28
  • 2022-01-01
  • 2022-01-01
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案