摘要:
一,docker官网文档 https://docs.docker.com/engine/install/ubuntu/ 参考上面官方的安装文档 二,安装docker 更新软件包索引并安装软件包以允许使用 基于 HTTPS 的存储库 # apt update # apt install ca-cert 阅读全文
posted @ 2025-11-14 23:04
刘宏缔的架构森林
阅读(38)
评论(0)
推荐(0)
摘要:
编辑neon的源 # vi /etc/apt/sources.list.d/neon.list 内容:// 注释原有内容,新增下面一行 sudo vi /etc/apt/sources.list.d/neon.list deb https://mirrors.bfsu.edu.cn/kde-neon 阅读全文
posted @ 2025-11-14 22:55
刘宏缔的架构森林
阅读(72)
评论(0)
推荐(0)
摘要:
一,代码: 自定义异常: class ApiError(Exception): """"API接口异常错误""" messsage = "" # 默认错误码 status_code = 400 # 自定义一个return_code, 作为更细粒的错误代码 def __init__(self, mes 阅读全文
posted @ 2025-11-14 20:27
刘宏缔的架构森林
阅读(11)
评论(0)
推荐(0)
摘要:
一,代码: 异常 处理: # 异常处理 @app.errorhandler(Exception) def handle_exception(error): stack = traceback.format_exc() app.logger.error(f"An error occurred: {st 阅读全文
posted @ 2025-11-14 19:45
刘宏缔的架构森林
阅读(5)
评论(0)
推荐(0)
浙公网安备 33010602011771号