Chinaunix首页 | 论坛 | 博客
  • 博客访问: 756090
  • 博文数量: 160
  • 博客积分: 2516
  • 博客等级: 大尉
  • 技术积分: 1511
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-24 17:58
文章分类

全部博文(160)

文章存档

2019年(2)

2018年(3)

2017年(15)

2016年(3)

2015年(11)

2014年(3)

2013年(1)

2012年(3)

2011年(17)

2010年(25)

2009年(17)

2008年(13)

2007年(14)

2006年(21)

2005年(10)

2004年(2)

分类: Java

2015-08-27 01:30:20

TOMCAT APR:
apr-1.5.2.tar.gz
apr-util-1.5.4.tar.gz


点击(此处)折叠或打开

  1. tar -zxvf apr-1.5.2.tar.gz
  2. cd apr-1.5.2
  3. ./configure
  4. make
  5. make install
  6. #/usr/local/apr

  7. tar -zxvf apr-util-1.5.4.tar.gz
  8. cd apr-util-1.5.4
  9. ./configure --with-apr=/usr/local/apr
  10. make
  11. make install

  12. cd /da/tomcat/bin/tomcat-native-1.1.33-src/jni/native
  13. ./configure --with-apr=/usr/local/apr
  14. make
  15. make install

  16. #手动版
  17. vi /etc/profile
  18. # 后面添加以下内容
  19. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib
  20. # 使profile生效
  21. source /etc/profile

  22. #服务版:
  23. vi /etc/init.d/tomcatd
  24. JAVA_HOME=/app/jdk
  25. CATALINA_HOME=/app/tomcat
  26. CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"
  27. TOMCAT_USER=tomcat
JSVC:

点击(此处)折叠或打开

  1. cd tomcat/bin
  2. tar xvfz commons-daemon-native.tar.gz
  3. cd commons-daemon-1.0.x-native-src/unix
  4. ./configure
  5. make
  6. cp jsvc ../..
  7. cd ../..

  8. JAVA_HOME=/app/jdk
  9. CATALINA_HOME=/app/tomcat
  10. TOMCAT_USER=tomcat

  11. 修改ARG0的值为如下:
  12.  ARG0="/app/tomcat"

  13. 把daemon.sh放到/etc/init.d中,并且配置服务自启动
  14. cp daemon.sh /etc/init.d/tomcat
  15. cd /etc/init.d/
  16. chkconfig --add tomcat
  17. chkconfig --level 345 tomcat on
  18. service tomcat start [stop|version|run]


阅读(1332) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~