摘要: ```text [root@hecs-83607 ~]# uname -a Linux hecs-83607 5.14.0-162.12.1.el9_1.0.2.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 30 22:14:42 UTC 2023 x86_64 x86 阅读全文
posted @ 2023-08-18 21:04 1769987233 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 注意,simple 不能少, 是 https 而不是 http 设为默认 升级 pip 到最新的版本 (>=10.0.0) 后进行配置: python 阅读全文
posted @ 2023-04-03 22:13 1769987233 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Form Data Post表单请求 代码示例 headers = { "Content-Type": "application/x-www-form-urlencoded" } requests.post(url, data=data, headers=headers) Request Paylo 阅读全文
posted @ 2023-03-31 22:39 1769987233 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 匹配正则表达式 一键给 headers键值对加上引号 搜寻 (.*?):\s+(.*) 替换 '$1':'$2', $1代表第一个括号中的内容 $2代表第二个括号中的内容 阅读全文
posted @ 2023-03-31 22:14 1769987233 阅读(7) 评论(0) 推荐(0) 编辑
摘要: requests-2.28.2 依赖 certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 urllib3-1.26.15 离线安装的时候要注意 阅读全文
posted @ 2023-03-31 21:31 1769987233 阅读(16) 评论(0) 推荐(0) 编辑
摘要: ## 这个示例配置文件演示了各种设置 ## 可通过 rabbitmq.conf 获得。它主要关注核心代理设置 ## 但也涵盖了一些第 1 层插件设置。 ## ## 这个文件是一个例子。它不打算用于生产。代替 ## 复制整个(大!)文件,为目标系统创建或生成一个新的rabbitmq.conf ## 并 阅读全文
posted @ 2022-05-13 15:28 1769987233 阅读(338) 评论(0) 推荐(0) 编辑
摘要: kubectl -n kubernetes-dashboard get secret \ $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") \ -o go-template="{ 阅读全文
posted @ 2022-05-06 15:32 1769987233 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1、每个容器中只运行一个应用程序,则水平伸缩将变得十分容易。例如,当你需要一个Tomcate容器,可以从现有的容器再扩展出一个,但如果你的这个容器中不仅有Tomcate,还有MySQL等其他应用程序,事情就会变得复杂起来。 2、每个容器中只运行一个应用程序,可以轻松地将其重新用于其他项目或目的,极大 阅读全文
posted @ 2022-03-28 18:00 1769987233 阅读(272) 评论(0) 推荐(0) 编辑
摘要: NetworkManager是2004年Red Hat启动的项目,旨在能够让Linux用户更轻松地处理现代网络需求,尤其是无线网络,能自动发现网卡并配置ip地址。 在rhel8上,必须开启NM,否则无法使用网络。 nmcli使用方法 nmcli使用方法非常类似linux ip命令、cisco交换机命 阅读全文
posted @ 2022-03-23 16:15 1769987233 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 下载nginx源码 yum install -y gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel ./configure \ --prefix=/etc/nginx \ --sbin-path=/usr/sbin/n 阅读全文
posted @ 2022-03-17 17:33 1769987233 阅读(74) 评论(0) 推荐(0) 编辑