上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 例如:A地址无法访问国外 B段地址可以正常访问国外 A段地址的网关设备上,将国外的目标地址段路由指向B段的NAT主机,在B段NAT主机上nat 命令:iptables -t nat -I POSTROUTING -s A段地址 -j MASQUERADE (表示将A段地址伪装成本机地址转发) ip 阅读全文
posted @ 2021-01-25 15:06 邓聪聪 阅读(104) 评论(0) 推荐(0)
摘要: #!/usr/bin/env bash # # Description: Auto test download & I/O speed script # # Copyright (C) 2015 - 2020 Teddysun <i@teddysun.com> # Thanks: LookBack 阅读全文
posted @ 2021-01-13 18:20 邓聪聪 阅读(138) 评论(0) 推荐(0)
摘要: 2.查看磁盘扩容后状态,没有任何变化 lsblk fdisk -Th 3.记住根分区的编号!!!,删除原来的(不要保存!不要保存!不要保存!),重新建立, 然后保存并退出刷新分区 partpeobe /dev/sda 刷新根分区并查看状态 xfs_growfs /dev/sda3 阅读全文
posted @ 2020-12-15 12:16 邓聪聪 阅读(341) 评论(0) 推荐(0)
摘要: docker pull sebp/elk:660 docker images docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -itd -e ES_HAEP_SIZE="2g" -e LS_HEAP_SIZE="1g" --name elk seb 阅读全文
posted @ 2020-12-01 15:56 邓聪聪 阅读(242) 评论(0) 推荐(0)
摘要: NAT内网回源问题 # nat alg dns enable #命令使能ALG DNS功能,才可以使DNS应答报文正常穿越NAT#nat dns-map domain.cn x.x.x.x 80 tcp #用来配置一条域名到外部IP地址、端口号、协议类型的映射 方案一: !!!外网口[Gateway 阅读全文
posted @ 2020-11-10 11:45 邓聪聪 阅读(1878) 评论(0) 推荐(0)
摘要: 为了监控某个IP的端口是否正常,zabbix内置tcp监控的key值" net.tcp.port[IP,port] 返回结果1表示端口正常,返回0表示不存在",既触发器配置" {Zabbix server:net.tcp.port[113.143.100.199,8899].last()}=0 " 阅读全文
posted @ 2020-10-24 21:28 邓聪聪 阅读(1893) 评论(0) 推荐(0)
摘要: import_export版本不对,可能是版本太高了,已经取消了chunk_size这个函数 import import_exportimport_export.__version__ 解决办法: pip3 --default-timeout=2000 install django_import_e 阅读全文
posted @ 2020-10-20 15:22 邓聪聪 阅读(74) 评论(0) 推荐(0)
摘要: 1 来自B站的干货:https://www.bilibili.com/video/BV1PV411k7Rz?p=7 阅读全文
posted @ 2020-09-29 14:03 邓聪聪 阅读(111) 评论(0) 推荐(0)
摘要: 1,首先查询需要查询主机的hositid select host,hostid from hosts WHERE host="xxx" 2,查询主机的item select itemid,name,key_ from items where hostid=hostid and name regexp 阅读全文
posted @ 2020-08-31 21:54 邓聪聪 阅读(614) 评论(0) 推荐(0)
摘要: 1.问题:登陆MYSQL以后,不管运行任何命令,总是提示这个 mysql> show databases; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing thi 阅读全文
posted @ 2020-08-21 14:45 邓聪聪 阅读(378) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页