摘要: - name: set xx system dns lineinfile: dest={{ item.dest }} state=present line={{ item.line }} with_items: - { dest: "/etc/resolv.conf", line: "nameserver 192.168.91.33" ... 阅读全文
posted @ 2019-11-20 17:35 Maclean 阅读(69) 评论(0) 推荐(0)
摘要: yum info gcc cmake -version yum install cmake yum -y install wget wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2 tar -jxvf gcc-4.8.2.tar.bz2 mkdir build-gcc-4.8.2 cd build-gcc-4.8.2 ../... 阅读全文
posted @ 2019-11-12 14:10 Maclean 阅读(391) 评论(0) 推荐(0)
摘要: 如果你之前安装过 docker,请先删掉sudo yum remove docker docker-common docker-selinux docker-engine 安装一些依赖sudo yum install -y yum-utils device-mapper-persistent-dat 阅读全文
posted @ 2019-11-05 11:01 Maclean 阅读(154) 评论(0) 推荐(0)
摘要: 1 在 /usr/shared/fonts 目录下新建 winfonts目录 权限为666 2 将windows字体放到 /usr/share/fonts/winfonts 目录下 3 安装ttmkfdir来搜索目录中所有的字体信息 yum -y install ttmkfdir 4 然后执行ttmkfdir命令即可: 5 ttmkfdir -e /usr/share/X11/font... 阅读全文
posted @ 2019-07-30 16:21 Maclean 阅读(384) 评论(0) 推荐(0)
摘要: upstream test { server 10.10.10.10:5800; server 10.10.10.11:5800; server 10.10.10.12:5800; keepalive 512; check interval=3000 rise=2 fall=3 timeout=1000 ... 阅读全文
posted @ 2019-07-19 16:14 Maclean 阅读(407) 评论(0) 推荐(0)
摘要: #从grafana官网下载rpm包 #https://grafana.com/grafana/download wget https://dl.grafana.com/oss/release/grafana-6.1.4-1.x86_64.rpm /etc/init.d/grafana-server stop yum update grafana-6.1.4-1.x86_64.rpm # 更新插... 阅读全文
posted @ 2019-07-17 11:07 Maclean 阅读(543) 评论(0) 推荐(0)
摘要: log_format nginx_json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"responsetime 阅读全文
posted @ 2018-10-13 16:33 Maclean 阅读(79) 评论(0) 推荐(0)
摘要: tcpdump的语法:tcpdump [options] [Protocol] [Direction] [Host(s)] [Value] [Logical Operations] [Other expression] 常用选项:-i any : Listen on all interfaces j 阅读全文
posted @ 2018-10-13 13:57 Maclean 阅读(60) 评论(0) 推荐(0)
摘要: django分页插件 插件GitHub地址:https://github.com/jamespacileo/django-pure-pagination 介绍 django应用程序提供了先进的分页功能,而不会在现有项目中强制进行主要的代码更改。 Django纯分页是基于Django的核心分页模块,因 阅读全文
posted @ 2017-11-14 14:16 Maclean 阅读(202) 评论(0) 推荐(0)
摘要: 常用匹配模式 阅读全文
posted @ 2017-11-13 13:35 Maclean 阅读(84) 评论(0) 推荐(0)