上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: [root@es ~]# cat /data/elasticsearch-6.8.8/config/elasticsearch.yml cluster.name: es_user node.name: es-user01 path.data: /data/elasticsearch_data pat 阅读全文
posted @ 2023-03-14 11:43 Hello_worlds 阅读(40) 评论(0) 推荐(0)
摘要: # Python version:3.6.5 # Python version:Python 3.6.5import hashlibimport urllibfrom urllib.parse import urlparseimport datetimeimport requestsimport j 阅读全文
posted @ 2023-03-03 17:13 Hello_worlds 阅读(72) 评论(0) 推荐(0)
摘要: 1、如果接企业微信请参考下面的文章 https://www.txisfine.cn/archives/9c078bb7.html 感谢上述文章的作者提供的思路 ChatGPT 是最近很火的 AI 智能机器人程序,2 个月活跃用户突破 1 亿,它能够通过学习和理解人类的语言来进行对话,还能根据聊天的上 阅读全文
posted @ 2023-02-22 17:29 Hello_worlds 阅读(1317) 评论(2) 推荐(0)
摘要: import datetime import time # 获取当前时间(2023-02-16 16:41:36) now_date = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') # 将当前时间转换为秒级时间戳(1676536896. 阅读全文
posted @ 2023-02-16 17:19 Hello_worlds 阅读(135) 评论(0) 推荐(0)
摘要: for i in range(20):# 这里循环(0-20) if i <= 9: print("❤ " * i) else: print("❤ " * (20 - i)) 阅读全文
posted @ 2023-02-06 14:13 Hello_worlds 阅读(27) 评论(0) 推荐(0)
摘要: shell cat 99.sh #!/bin/bash for i in `seq 9` do for j in `seq 1 $i` do echo -en "$i*$j=$(($i*$j))\t" #-n:默认echo会在每行结尾加一个回车的换行符,-n放在这里是为了取消这个换行符 #-e:放在 阅读全文
posted @ 2023-02-03 16:14 Hello_worlds 阅读(310) 评论(0) 推荐(0)
摘要: 1、yum源报错 # 具体报错信息 failure: repodata/4bb73bd0742c638c3cd1e73a5f3dc8838c7b0d693c9f50b7ed8266c3e83308d3-filelists.sqlite.bz2 from zabbix: [Errno 256] No 阅读全文
posted @ 2023-01-28 16:20 Hello_worlds 阅读(1960) 评论(0) 推荐(0)
摘要: cat test.sh # 定义一个空的数组 array=() ping -w 1 192.168.1.1 > /dev/null 2>&1 array+=($?) ping -w 1 192.168.1.1 > /dev/null 2>&1 array+=($?) ping -w 1 127.0. 阅读全文
posted @ 2023-01-11 14:54 Hello_worlds 阅读(21) 评论(0) 推荐(0)
摘要: iptables -I INPUT -p tcp --dport 8888 -j DROPiptables -I INPUT -s 10.9.145.101 -p tcp --dport 8888 -j ACCEPTservice iptables save 参考文章: https://www.cn 阅读全文
posted @ 2023-01-03 16:49 Hello_worlds 阅读(1030) 评论(0) 推荐(0)
摘要: nodelocaldns pod 中的 /etc/resolv.conf 虽然读取的是 宿主机的/etc/resolv.conf,但是不是实时同步更新的。可能同步更新会有延迟 所以如果 /etc/resolv.conf 文件中的内容 [root@master-01 kubernetes]# kube 阅读全文
posted @ 2022-12-08 17:57 Hello_worlds 阅读(315) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页