易截截图软件、单文件、免安装、纯绿色、仅160KB

linux下的apache+tomcat整合整理

 用到的软件: httpd-2.0.52.tar.gz,apr-util-1.2.12,apr-1.2.2  ,jakarta-tomcat-5.0.28 ,libtool-1.5.6.tar.gz,
   参考资料:http://www.chinaunix.net/jh/13/433971.html,
先安装好apache和tomcat,在浏览器里面访问成功再进行下一步。
首先整合tomcat+apache
首先按照网上资料介绍的一步一步来。其中都没有出错,但是到了编译mod_jk2.so模块的时候:./configure --with-apxs2=/usr/local/apache2/bin/apxs  出现了need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
configure: error: can't locate libapr
错误,按照他的提示,更新了apr,apr-util,libtool-1.5.6的版本,也做了软连接。接着执行:./configure --with-apxs2=/usr/local/apache2/bin/apxs
在这一步的时候又出现了提示:
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for "apache-2.0"
checking checking for apache13...... not provided
checking checking for apache20...... not provided
checking checking for iis...... not provided
checking checking for iPlanet...... not provided
checking for tomcat33 location... not provided
checking for tomcat40 location... not provided
checking for tomcat41 location... not provided
configure: creating ./config.status
没有提供apxs参数。其实这个不是错误,接着执行make编译就行了。我每次到了这个地方都认为是某个地方执行不对,出了错误,然后我就停止了,直接返回到上一级目录,一看build目录没有生成,那么mod_jk2.so肯定也没有生成。我就一直纳闷自己按照步骤来的怎么就编译不出mod_jk2.so文件呢。其实就是因为太傻,根本没有make,怎么会出现mod_jk2.so模块呢。
jk2_mod.so模块编译出来了。然后将jk2_mod.so文件放到apache/modules目录下,修改conf/httpd.conf文件,添加:LoadModule jk2_module modules/mod_jk2.so,随便添加到哪个位置都行,最好是多个LoadModule放在一块,维护方便。其他关于站点路径DocumentRoot的设置,按照自己需要设置成相应目录。
然后编写workers2.properties文件:
[logger]
level=ERROR
[config:]
file=/usr/local/apache2/conf/workers2.properties
debug=0
debugEnv=0
# Alternate


相关文档:

实战Linux Bluetooth编程(六) L2CAP编程实例

例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
 如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......

实战Linux Bluetooth编程 (七) SDP协议

Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......

linux 打包

linux 打包命令tar:
tar cvf my.tar file1  // 单个文件
tar cvf my.tar file1 file2 .. // 多个文件
tar cvf my.tar dir1  // 单个目录
tar cvf my.tar dir1 dir2 .. // 多个目录
以上仅打包并无压缩。
参数:
-c :建立一个压缩文件的参数指令(create 的意思);
-x :解开一个压缩文件的参数指令!
- ......

SVN服务器配置详解(linux)

subversion(以下简称svn)是近年来崛起的版本管理工具,是cvs的接班人。
svn服务器有2种运行方式:独立服务器和借助apache。2种方式各有利弊。
svn存储版本数据也有2种方式:BDB和FSFS。因为BDB方式在服务器中断时,有可能锁住数据,所以还是FSFS方式更安全一点。
1. svn服务器安装
操作系统: Redhat Linux AS4
获取svn ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号