1.首先需要检查是否已经安装如下东西: node 、nodemon 、yarn、nginx、redis。 如没有则按如下命令相应安装: npm install n -g npm install -g nodemon npm install yarn -g 下载安装nginx,redis 2.将con ...
分类:
其他好文 时间:
2020-01-13 13:14:36
阅读次数:
135
1.在工程的 info.plist 文件中增加两个key( 右键 - Add Row ) Privacy - Location Always and When In Use Usage Description Privacy - Location When In Use Usage Descript ...
分类:
移动开发 时间:
2020-01-13 13:08:17
阅读次数:
105
StatefulSet(状态集)1,什么是StatefulSet?StatefulSet又叫PetSet(之前的名称),它和RS,RC,Deployment等一样,都是pod控制器。StatefulSet是为了解决有状态服务的问题(对应于deoloyment和RS,RC,ReplicaSet都是为无状态服务而设计的)。什么是无状态服务?在生产环境中,pod的名称是随机的,扩缩容的是时候没有规律,每
分类:
其他好文 时间:
2020-01-12 23:36:14
阅读次数:
120
file-->setting-->plugins点击下方的 browse repositories。 搜索lombok plugin。安装后,重启。file-->setting-->build,excecution,deployment-->compiler-->annotation process ...
分类:
其他好文 时间:
2020-01-12 22:24:13
阅读次数:
679
$("#pic").click(function(){ location.href='newpage.html'; }); 上面的相当于<a href="newpage.html" target="_self"><img src="img.jpg" /></a> $("#pic").click(fu ...
分类:
Web程序 时间:
2020-01-12 21:55:36
阅读次数:
2267
Objects 以下列举的内容都是 kubernetes 中的 Object,这些对象都可以在 yaml 文件中作为一种 API 类型来配置。 Pod Node Namespace Service Volume PersistentVolume Deployment Secret StatefulS ...
分类:
Web程序 时间:
2020-01-12 19:54:18
阅读次数:
148
一 、 location: 顾名思义 地址,也叫路由。 nginx服务器非常核心的配置,一般nginx运维人员在修改nginx配置时,大部分也是围绕着location这个配置进行修改。 下面看一下一个简单的location配置: 这个配置表示任何一个路径访问nginx服务器,都跳转到home目录下的 ...
分类:
其他好文 时间:
2020-01-12 18:02:04
阅读次数:
85
编程式的导航 除了使用 <router-link> 创建 a 标签来定义导航链接,我们还可以借助 router 的实例方法,通过编写代码来实现。 #router.push(location, onComplete?, onAbort?) 注意:在 Vue 实例内部,你可以通过 $router 访问路 ...
分类:
其他好文 时间:
2020-01-12 11:50:20
阅读次数:
73
背景: 使用CAS登录的过程中会涉及到三次重定向,如果在同一个局域网内,是没有任何问题的,但如果涉及到跨网访问就有问题了。 解决思路: 通过Nginx对要访问的系统进行代理,把响应头中的重定向Location的地址改成外网能访问到的IP,实现跨网访问。 实现步骤: 1、安装Nginx,安装ngx_h ...
分类:
Web程序 时间:
2020-01-11 15:05:29
阅读次数:
227
location 优先级 = > ^~ > ~> ~* > / = 用于指定完整路径 例 location = /game_center 匹配 http://url/game_center 完整路径 location /test12/formdata.html ^~ 用于指定前半路径 例 locat ...
分类:
其他好文 时间:
2020-01-11 13:37:02
阅读次数:
88