摘要:
https://blog.51cto.com/13641616/2442005 排错背景:在一次生产环境的部署过程中,配置文件中配置的访问地址为集群的Service,配置好后发现服务不能正常访问,遂启动了一个busybox进行测试,测试发现在busybox中,能通过coredns正常的解析到IP,然 阅读全文
摘要:
while true; do date >>private.txt;curl -o /dev/null -s -w %{time_namelookup} %{time_connect} %{time_starttransfer} %{time_total} %{speed_download}"\n" 阅读全文
摘要:
l time curl -k -v 域名,示例 l curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_nslookup:%{time_name 阅读全文
摘要:
容器磁盘空间扩容 devicemapper是RHEL的Docker Engine的默认存储驱动,有两种配置模式:loop-lvm和direct-lvm。 loop-lvm是默认的模式,它使用OS层面离散的文件来构建精简池(thin pool) 登录节点vi /etc/docker/daemon.js 阅读全文
摘要:
http://www.zsythink.net/archives/1199 具体使用 https://www.cnblogs.com/liang2580/articles/8400140.html 关于 留言板 友情链接 主页 Linux基础 运维技术 数据库 编程 首页运维技术IPtablesLi 阅读全文
摘要:
template.j2 模板 {{ansible_facts.hostname}}:{{ansible_default_ipv4.address}} This system's total memory is: {{ ansible_memtotal_mb }}MBs. The current fr 阅读全文
摘要:
关于cloudera服务启动失败的问题,分析根因是在initramfs这个内存的rootfs没有xfs模块, 挂载/usr失败了 可以在/etc/dracut.conf.d/virtdriver.conf增加xfs add_drivers+="xen-blkfront xen-netfront vi 阅读全文
摘要:
使用 Ansible 统计服务器资源利用率: 3 条 shell 脚本实现统计: CPU 利用率统计 top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}' 内存利用率统计: free -m | awk 'NR==2{pri 阅读全文
摘要:
FPX 使用工具转换会包含CA证书 #PFX转换成crt证书 openssl pkcs12 -in ./server.pfx -clcerts -nokeys -out ./server.crt 1、-clcerts:仅仅输出客户端证书,不输出CA证书。 2、-nokeys:不输出任何私钥信息值。 阅读全文
摘要:
Handlers 模块的使用 - name: template index.html hosts: localhost tasks: - template: src: /tmp/index.html dest: /var/www/html/index.html notify: - restart h 阅读全文