在eclipse中集成tomcat来开发时, 如果使用run as模式启动项目的话,tomcat配置Auto reloading enabled,我们修改java文件,项目会重新加载,修改的内容会生效. 如果使用debug as 模式启动项目的话,tomcat不要配置Auto reloading e ...
分类:
其他好文 时间:
2018-07-14 11:49:07
阅读次数:
148
mongodb集群 组件: mongos:请求分发 config server 配置服务器 shard 分片数据服务器 三台机器 192.168.174.128 192.168.174.129 192.168.174.130 服务器规划 端口分配: mongos:20000 config:21000 ...
分类:
数据库 时间:
2018-07-13 17:38:26
阅读次数:
259
1、nginx 安装nginx之前先安装python的pip,千万不能用pypy的pip,会容易破坏依赖关系,很难修复, 因为,是自动安装,所以nginx的配置文件在/etc/nginx/sites-enabled/文件目录下的default。直接通过命令vi打开,a,进入插入模式,进行编辑。因为u ...
分类:
系统相关 时间:
2018-07-13 01:19:46
阅读次数:
256
如何进行session的缓存? 原理: Shiro有1个类,AuthorizingRealm AuthenticatingRealm,里面有个获取认证信息的方法, AuthenticatingRealm getAuthenticationInfo;getAuthenticationInfo方法中 先 ...
分类:
系统相关 时间:
2018-07-12 22:41:52
阅读次数:
223
OfflineCameraButton控件 一、 样式一 我们要实现上图中的效果,需要如下的操作: 设置控件的背景色,默认设置为“White”,如图1; 图 1 设置控件背景色透明度,默认设置为“255”,即不透明,如图2; 图 2 若将该属性设置为“0”,该控件的背景色即为全透明的,显示为Smob ...
分类:
移动开发 时间:
2018-07-12 13:07:12
阅读次数:
394
1----临时状态查看:[root@gbase-test1opt]#systemctlstatusfirewalld●firewalld.service-firewalld-dynamicfirewalldaemonLoaded:loaded(/usr/lib/systemd/system/firewalld.service;enabled;vendorpreset:enabled)Active:
分类:
其他好文 时间:
2018-07-11 16:36:33
阅读次数:
715
rm-rf/etc/yum.repos.d/*//删除系统中默认自带官方YUM源vim/etc/yum.repos.d/local.repo[local]//仓库名name=localbaseurl=file:///mnt//软件包存储位置enabled=1//启动该仓库gpgcheck=0//不检测公钥信息yumcleanall&&yumrepolist//清除所有yum缓存,并
分类:
其他好文 时间:
2018-07-11 10:44:49
阅读次数:
146
[gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1 4.自动安装最新版本 yum in ...
分类:
Web程序 时间:
2018-07-11 00:58:56
阅读次数:
497
Ribbon Ribbon是一个基于HTTP和TCP客户端的负载均衡器。Feign中也使用Ribbon,后续会介绍Feign的使用。 Ribbon可以在通过客户端中配置的ribbonServerList服务端列表去轮询访问以达到均衡负载的作用。 当Ribbon与Eureka联合使用时,ribbonS ...
分类:
编程语言 时间:
2018-07-10 21:29:46
阅读次数:
197