
linux/unix
文章平均质量分 64
黑色白色
我不是吉他手也不是摄影师我是一个程序员
展开
-
压力测试工具apache-ab讲解
<br /> 。现在有些压力测试工具都是收费的。在开源的apache中自带个ab工具。就在C:/Apache2.2/bin/ab.exe。用它可以检测自己的程序性能如何。用下吧!,可以提高自己代码质量。APACHE的bin目录下。<br />格式.ab [options] [http://]hostname[:port]/path<br />参数<br />-n requests Number of requests to perform<br />//在测试会话中所执行的请求个转载 2011-04-19 16:54:00 · 655 阅读 · 1 评论 -
Ehcache集群环境配置
<br />Ehcache支持的分布式缓存支持有三种RMI,JGroups,JMS,这里介绍下MRI和JGrpups两种方式,Ehcache使用版本为1.5.0,关于ehcache的其他信息请参考http://ehcache.sourceforge.net/EhcacheUserGuide.html,关于jgroups的信息请参考http://www.jgroups.org/manual/html_single/index.html。<br /> <br />环境为两台机器 server1 ip转载 2011-04-20 15:16:00 · 966 阅读 · 0 评论 -
linux上安装简易Oracle cilent
操作系统是Redhat Enterprise Linux 5.2,需连接数据库,oracle安装程序提供的客户端太大了,有几百M,如果只需要数据库连接功能,可以使用instant client。下载以下3个包:instantclient-basic-linux32-10.2.0.3-20061115.zipinstantclient-sdk-linux32-10.2.0.3-2006111转载 2011-10-25 15:26:04 · 827 阅读 · 0 评论 -
安装python cx_oracle库
安装或使用cx_Oracle时,需要用到Oracel的链接库,如libclntsh.so.10.1,否则会有各种各样的错误信息。 安装Oracle Instant Client就可得到这个链接库,避免安装几百兆之巨的Oracle Client。 软件下载地址:cx_Oracle的主页:http://cx-oracle.sourceforge.net/必需的Oracle链转载 2011-10-26 15:41:40 · 2731 阅读 · 1 评论 -
Linux下执行程序时发生错误:cannot restore segment prot after reloc
cannot restore segment prot after reloc,原来这是SELinux搞的鬼,解决办法有两个法一:1. 使用chcon 命令示例:chcon -t texrel_shlib_t /usr/local/rsi/idl_6.1/bin/bin.linux.x86/*.so修正为:chcon -t textrel_shlib_t /usr/loca转载 2011-11-01 15:09:03 · 400 阅读 · 0 评论 -
linux下nginx+python+uwsgi部署总结
一.安装uwsgi到http://projects.unbit.it/uwsgi/wiki/WikiStart#Getit 下载最新版本的uwsg。解压后,如果没有安装libxml2,又不想安装的话,那么编辑文件 buildconf/default.ini, 把1xml_implementation = libxml2改成原创 2012-05-29 15:09:42 · 923 阅读 · 0 评论 -
Linux环境下安装Nginx+Pcre+OpenSSL
Nginx需要其他第三方库的支持,比如rewrite模块需要pcre库,ssl需要openssl库1、 PCRE库的安装:官网:http://www.pcre.org/选择最新版本下载:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz解压:tar –zxvf pcre-8.10转载 2012-01-11 17:44:48 · 1336 阅读 · 3 评论 -
.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filena
解决方法 : sudo chmod g-wx,o-wx /home/refresh/.python-eggs原创 2013-12-11 15:16:30 · 2450 阅读 · 0 评论 -
安装devpi
1. 安装Pythonwget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz --no-check-certificate./configure && make && make installecho '......install setuptool...........'wget https原创 2015-01-12 10:47:06 · 2202 阅读 · 0 评论