在tomcat里apr的支持
#killall java
++关闭IPV6
#vi /etc/sysconfig/network
加入下内容:
NETWORKING_IPV6=no
#vi /etc/modprobe.conf
加入下内容:
alias net-pf-10 off
alias ipv6 off
++/etc/rc.local里是自动启动的,
加入路由,
#vi /etc/rc.local
ip ro add default via 61.153.57.193 table ctc
ip ru add from 本机的电信ip table ctc
#./etc/rc.local
运行/etc/rc.local出现错误:
Error: argument "ctc" is wrong: "table" value is invalid
Error: argument "ctc" is wrong: invalid table ID
应该改:
#vi /etc/iproute2/rt_tables添加一行:
200 ctc
++重新编译tomcat,加入apr支持
#cd /usr/local/tomcat/bin
[root@H00068-qz-web25 bin]#rm -rf tomcat-native-1.1.10-src
[root@H00068-qz-web25 bin]#tar -xvf tomcat-native.tar.gz
[root@H00068-qz-web25 bin]#cd tomcat-native-1.1.10-src/jni/native
[root@H00068-qz-web25 native]#./configure --with-apr=/usr/local/apr/bin/apr-1-config --with-java-home=/usr/local/jdk1.5.0_05
[root@H00068-qz-web25 native]#make
[root@H00068-qz-web25 native]#make insatll
关闭ssl的认证
[root@H00068-qz-web25 native]#vi /usr/local/tomcat/conf/server.xml
改为
[root@H00068-qz-web25 native]#vi /usr/local/tomcat/bin/catalina.sh
加入下内容:
ulimit -n 8192
export CATALINA_OPTS="-Djava.awt.headless=true -Djava.library.path=/usr/local/apr/lib"
[root@H00068-qz-web25 native]#/usr/local/tomcat/bin/startup.sh
[root@H00068-qz-web25 native]#/usr/local/tomcat/bin/catalina.sh run
出现以下内容,测试成功
Apr 1, 2008 3:12:51 PM org.apache.coyote.http11.Http11NioProtocol init
阅读(1797) | 评论(0) | 转发(0) |