`
ytfei
  • 浏览: 86704 次
社区版块
存档分类
最新评论
文章列表
环境JBOSS4 数据源名称为 MysqlDs <jee:jndi-lookup id="dataSource" jndi-name="java:MysqlDs" />     <bean id="sessionFactory"         class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">         <property name="dataSource"> ...
1.emulator.exe -avd avd2.3 -http-proxy 10.x.x.x:8080 启动模拟器 2.或者在模拟器中设置: 启动模拟器,然后进入 settings->Wireless controls->Mobile networks->Access Point Names W) Kpnb7   然后打开出现在列表中的access point; 2YP"nj#  dO4U9{+   然后下面这样设置: XKPt[$ab  L!}j3(I   - Proxy : your proxy address $nd-[xV ...
有两种方式: 1. select id from a where id in (11,1,111) order by instr(',11,1,111,',concat(',',id,',')) 注意要构造多出的, 号 2.(推荐)SELECT * FROM `MyTable`WHERE `id` IN (11,1,111) ORDER BY FIELD(`id`, 11,1,111)   有文章指出: FIELD(str,str1,str2,str3,...) Returns the index (position) of str in the str1, str2, str3, ...
参考文章: http://hi.baidu.com/tk_ayj/blog/item/253999b6323bfdff30add106.html URLRewrite详解   主要注意点在于: 后续的filter 必须配置 <dispatcher>REQUEST </dispatcher> <dispatcher>FORWARD </dispatcher> 否则后续的filter将无法作用于 url rewrite 后的url ( 2.4版本的servlet规范在部属描述符中新增加了一个<dispatcher>元 ...
集群   配置负载均衡各参数的意义,一篇很好的文章:   http://salogs.com/2010/05/nginx-http%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E7%9A%84%E7%9B%B8%E5%85%B3%E5%8F%82%E6%95%B0%E6%B5%8B%E8%AF%95/     upstream test  { server 192.168. ...
MySQL存储过程详解 转自:http://www.owe-love.com/myspace/?action=show&id=187   1.存储过程简介 我们常用的操作数据库语言SQL语句在执行的时候需要要先编译,然后执行,而存储过程(Stored Procedure)是一组为了完成特定功能的SQL语句 ...
 --prefix=/opt/app/nginx --with-rtsig_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --add-module=/data/software/nginx/nginx-accesske ...
参考:http://xingba.iteye.com/blog/294165   HTTP协议中关于缓存的信息头关键字包括Cache-Control(HTTP1.1),Pragma(HTTP1.0),last-Modified,Expires等。         HTTP1.0中通过Pragma 控制页面缓存,可以设置:Pragma或no-cache。网上有非常多的文 ...
服务器上运行nginx 转发请求到 tomcat 8080 的jsp 获取到的信息   request.getHeader("x-real-ip");= 58.x.x.x request.getHeader("x-forwarded-for");=10.15.x.x, 58.x.x.x request.getHeader("Proxy-Client-IP");=null request.getHeader("WL-Proxy-Client-IP");=null request.getRemoteAd ...
-c all -g DocsPartition -u 239.255.100.100 -b 192.168.1.2 -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-default -c all2 -g DocsPartition -u 239.255.100.100 -b 192.168.1.2 -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-01       upstream big_server_com {   ...
MYSQL用户与权限 http://www.cublog.cn/u3/118426/showart_2344972.html   在MYSQL中,你可以根据自己的需要定制不同的用户。比如,定制来自某些IP地址的用户可以访问,并且给这些 用户设置密码。搭配权限的设置,你还 ...
CREATE TABLE `org_grade` (   `grade_id` int(11) NOT NULL,   PRIMARY KEY (`grade_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;   CREATE TABLE `org_class` (   `class_id` int(11) NOT NULL,   `grade_id` int(11) DEFAULT NULL,   PRIMARY KEY (`class_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;   inser ...
待续: 参考:http://code.jellycan.com/memcached/ 下载memcached windows版本 http://langyu.iteye.com/blog/680052    Memcached CAS 协议  
启动服务                 # /etc/init.d/nfs start 停止服务                 # /etc/init.d/nfs stop 重启服务                 # /etc/init.d/nfs restart   编辑 /etc/exports /home/share 192.168.102.15(rw,sync,no_root_squash)  *(ro) 参数解释:  [共享的目录] [主机名1或IP1(参数1,参数2)] [主机名2或IP2(参数3,参数4)] 下面是一些NFS共享的常用参数:       ...
http://hi.baidu.com/youdianweidao/blog/item/94e1ff2e699dd0594fc22684.html apache ab详解
Global site tag (gtag.js) - Google Analytics