- 博客(5)
- 问答 (1)
- 收藏
- 关注
原创 Linux常用命令
操作系统相关重启网络 service network restart 查看开机启动服务systemctl list-unit-files |grep enabled查看服务进程pstree -ap|grep serviceNamepstree -ap|grep gunicorn终止进程kill pid# 强制killkill -9 pidkillall pronameVIM退出编辑器wq:保存当前文件并退出q!: 不保存,强制退出删
2022-04-27 11:44:44
149
原创 解决Python3 urllib3 urllib3.exceptions.maxretryerror: httpsconnectionpool(host=‘xxxxx‘, port=443)
报错原因 在使用代理进行请求时,代理只通过HTTP请求,此时请求进行HTTPS验证时验证失败。解决方案在1.25版本之前,请求时不会进行HTTPS验证。故可降低urllib3版本。pip install -U "urllib3<1.25"修改本地代理,将HTTPS覆盖为HTTP请求Windows 10下打开设置 -> 网络和Internet -> 代理,找到代理的IP和端口proxies = { 'http': 'http://127.0.0.1:1
2022-03-15 19:40:41
7930
原创 迁移Python环境到Linux
打包pip包, 生成requirement文件pip freeze > requirements.txt将项目文件和生成的requirements文件传到Linux响应目录下Linux下安装Python和pip(略)安装virtualenvsudo pip3 install virtualenv生成虚拟环境sudo virtualenv -p python3 venv# 若提示sudo: virtualenv: command not found,执行下面的命..
2022-03-07 17:20:16
1813
原创 Kafka三节点集群搭建
一 整体步骤安装配置ZookeeperKafka集群搭建二 安装配置Zookeeper下载解压# 使用wget或本地下载后传到服务器cd /home/sudo mkdir zookeepercd /home/zookeepersudo wget https://dlcdn.apache.org/zookeeper/zookeeper-3.5.9/apache-zookeeper-3.5.9-bin.tar.gzsudo tar -zxvf apache-zookeeper-3.
2022-03-04 14:03:39
723
原创 Leetcode 第70场双周赛Python题解
1 打折购买糖果的最小开销排序,倒序每取两个就跳过一个class Solution: def minimumCost(self, cost: List[int]) -> int: cost.sort() res = 0 i = len(cost) - 1 while i >= 0: res += cost[i] i -= 1 if i >=
2022-01-25 18:28:15
984
空空如也
Java 多线程问题
2021-06-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人