IPv6在未来可能成为主流,但是就目前而言,很多软件对IPv6的支持并不是很完善,可能导致各类问题。RHEL 7 & CentOS 7 在启动时默认是加载IPv6相关模块的,而禁用IPV6的方法与之前的版本有点不太一样了,现在我们来探讨一下如何彻底禁用IPv6的方法,修改grub,在系统启动引导时就 ...
分类:
系统相关 时间:
2020-12-07 12:43:41
阅读次数:
10
注意点:想要将缩放之后的div对齐顶点,那么需要将css属性设置为:transform-origin: 0 0 <div style="width: 900px; height: 900px; background: gray; overflow: auto;"> <div style="width ...
分类:
Web程序 时间:
2020-12-07 11:57:04
阅读次数:
8
<style type="texts">.*{ margin:0; padding:0; }.father{ position:relative; width:600px; height:400px; background:#F96; margin:50px auto; } .box1,.box2, ...
分类:
其他好文 时间:
2020-12-05 11:10:03
阅读次数:
6
/***获取音频时长*@parammultipart*@return*@throwsIOException*/publicstaticlonggetDuration(MultipartFilemultipart)throwsIOException{Filefile=newFile(multipart.getOriginalFilename());try{FileUtils.copyInputStr
分类:
其他好文 时间:
2020-12-05 10:59:01
阅读次数:
8
[root@www_test ~]# cd /root/redis2[root@www_test redis2]# tar -xf redis-2.8.18.tar.gz [root@www_test redis2]# cd redis-2.8.18[root@www_test redis-2.8. ...
分类:
其他好文 时间:
2020-12-05 10:46:39
阅读次数:
5
docker+k8s 1 简介 1.1 docker是什么 docker是开源项目,诞生于2013年初,由dotCloud公司发布的基于Google公司的Go语言实现 后加入Linux基金会,遵从Apache2.0协议,项目代码在Github维护 docker项目的目标是实现轻量级的操作系统虚拟化解 ...
分类:
其他好文 时间:
2020-12-05 10:44:55
阅读次数:
5
appium无ID、name定位处理【转】1、关于没有name,没有ID的元素的定位---通用篇解题思路:因为没有name,id;其实剩下的选择已不多,要么xpath,要么className。xpath木有好印象(稳定性不高,加之1.0x后需要写全路径,相当崩溃),我决定十分个人色彩的建议使用className。具体方法:用className获取所有该类型的元素;根据元素的位置确定元素的index
分类:
移动开发 时间:
2020-12-05 10:38:03
阅读次数:
13
相对定位与绝对定位的练习 .father{ width:600px; height:400px; background:#F63; margin:50px auto; position:relative; } .box1,.box2,.box3,.box4{ width:80px; height:6 ...
分类:
Web程序 时间:
2020-12-04 11:47:25
阅读次数:
23
将 auto.commit.offset 设为 false,然后在处理一批消息后 commitSync() 或者 异步提交 commitAsync() 即: ConsumerRecords<> records = consumer.poll(); for (ConsumerRecord<> reco ...
分类:
其他好文 时间:
2020-12-03 12:16:37
阅读次数:
6
Feign 是受到 Retrofit,JAXRS-2.0 和 WebSocket 启发的 java 客户端联编程序。 Feign 的第一个目标是将约束分母的复杂性统一到 http apis,而不考虑其稳定性。 在 employee-consumer 的例子中,我们使用了 employee-produ ...
分类:
Web程序 时间:
2020-12-03 11:37:13
阅读次数:
11