Apache+php+mysql+phpmyadmin+j2sdk+tomcat整合方法(4) 总站点别名:10.10.10.10 对应IP 10.10.10.10 对应目录D:\webroot\WWW IT部门: surport.example.com对应IP 10.10.10.10 对应目录D:\webroot\surport PhpMyadmin:对应IP 127.0.0.1对应目录D:\webroot\phpmyadmin 13.设置jk2的tomcat方配置,编辑D:\Tomcat\conf\jk2.properties文件(编辑前关掉Tomcat服务),使其如下: ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list handler.list=apr,request,channelJni # # Override the default port for the socketChannel channelSocket.port=8019 # Default: channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive channelJni.disabled = 0 # And one of the following directives: apr.jniModeSo=d:/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess 14.设置jk2的Apache方配置,在D:\Apache2\conf目录下创建workers2.properties并编辑 如下: [shm] file=${serverRoot}/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8019] channel=channel.socket:localhost:8009 # Uri mapping [uri:www.example.com/*.jsp]