摘要: 当nginx需要做反向代理和负载均衡的时候配置如下: upstream mir_k8s_service_server { server 10.111.11.83:8080 weight=10; server 10.111.11.84:8080 weight=10; #也可以不需要weight, 用i 阅读全文
posted @ 2016-02-02 10:37 飞鸟投林 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1. User clicks a link that has a URL of Servlet. Client Browse Servlet URL 2. Container (Apache Tomcat is one of the example) sees that the request is 阅读全文
posted @ 2016-01-28 10:26 飞鸟投林 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 症状:tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错误。同时其他项目页面也不能访问。关闭eclipse里面的tomcat,在tomcat安装目录下双击startup.bat手动启动tomcat服务器。访问htt://lo... 阅读全文
posted @ 2015-10-26 17:24 飞鸟投林 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 修改 /etc/default/docker 添加代理HTTP_PROXY="http://127.0.0.1:8087"HTTPS_PROXY="https://127.0.0.1:8087"http_proxy="${HTTP_PROXY}"https_proxy="${HTTPS_PROXY}... 阅读全文
posted @ 2015-10-26 09:36 飞鸟投林 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,Docker只允许通过unix socket通信操作Docker daemon,但有时我们想通过HTTP调用其Rest API,需单独配置启动参数为了使配置永久生效,在Ubuntu环境下修改其配置文件/etc/default/docker,(centos :/etc/sysconfig/... 阅读全文
posted @ 2015-10-26 09:35 飞鸟投林 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 1. centos 安装rpm时自动安装依赖包命令 yum -y localinstall xxxxxxxx.rpm2.查询系统中已经安装的软件 rpm -qa | grep ** 阅读全文
posted @ 2015-10-15 16:57 飞鸟投林 阅读(133) 评论(0) 推荐(0) 编辑
摘要: SSH(Secure SHELL) is an open source and most trusted network protocol that is used to login into remote servers for execution of commands and programs... 阅读全文
posted @ 2015-09-16 23:18 飞鸟投林 阅读(578) 评论(0) 推荐(0) 编辑
摘要: http://www.tutorialspoint.com/struts_2/struts_interceptors.htm 阅读全文
posted @ 2015-07-24 10:54 飞鸟投林 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 垃圾收集GC(Garbage Collection)是Java语言的核心技术之一,之前我们曾专门探讨过Java 7新增的垃圾回收器G1的新特性,但在JVM的内部运行机制上看,Java的垃圾回收原理与机制并未改变。垃圾收集的目的在于清除不再使用的对象。GC通过确定对象是否被活动对象引用来确定是否收集该... 阅读全文
posted @ 2015-06-15 15:34 飞鸟投林 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 目录一、数据库事务的定义二、数据库事务并发可能带来的问题三、数据库事务隔离级别四、使用Hibernate设置数据库隔离级别五、使用悲观锁解决事务并发问题六、使用乐观锁解决事务并发问题Hibernate事务与并发问题处理(乐观锁与悲观锁)一、数据库事务的定义 数据库事务(Database Trans... 阅读全文
posted @ 2015-05-21 16:10 飞鸟投林 阅读(331) 评论(0) 推荐(0) 编辑