1.安装apr ./configure --prefix=/application/search/usr/apr/apr-1.4.6 make -j16 make install -j16
2.安装apr-iconv ./configure --prefix=/application/search/usr/apr-iconv/apr-iconv-1.2.1 --with-apr=/application/search/usr/apr/default make -j16 make install -j16
3.安装apr-util ./configure --prefix=/application/search/usr/apr-util/apr-util-1.5.1 --with-apr=/application/search/usr/apr/default --with-apr-iconv=/application/search/usr/apr-iconv/default/bin/apriconv make -j16 make install -j16
4安装tomcat-native 在tomcat目录下,找到bin/tomcat-native-1.1.24-src ./configure --with-apr=/application/search/usr/apr/default --with-java-home=/application/search/usr/java/default make -j16 make install -j16
配置环境变量 vi ~/.bashrc export LD_LIBRARY_PATH=/application/search/usr/apr/default/lib:/application/search/usr/tomcat-native/default/lib 使环境变量生效 source ~/.bashrc 附加阅读
---------------------------------------------------------------------- Libraries have been installed in: /application/search/usr/tomcat-native/tomcat-native-1.1.24/lib
If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR‘ flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH‘ environment variable during execution - add LIBDIR to the `LD_RUN_PATH‘ environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR‘ linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf‘
See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ----------------------------------------------------------------------
1.1.2 输出报表 字段名字 中文解释 Server Software 被测试的Web服务器软件名称 Server Hostname 请求的URL中的主机部分名称 Server Port 被测试的WEB服务器的监听端口 Document Path URL中的相对路径 Document Length http响应数据的正文长度 Concurrency Level 并发用户数(-c) Time taken for tests 所有请求被处理完所花费的总时间 Complete requests 总请求数(-n) Failed requests 失败请求数 Total transferred 所有请求的响应数据长度和,包括头和正文 HTML transferred 所有请求的响应数据中,正文数据的和 Requests per second 吞吐率 Time per request 用户平均请求等待时间 = time taken for tests / (complete requests / concurrency level) Time per request: 服务器平均请求处理时间 = 吞吐率的倒数 = time per request / concurrency level Transfer rate 请求在单位时间内,从服务器获的数据长度 Percentage of the requests served within a certain time (ms) 请求处理时间的分布情况