随笔分类 - 日常问题
摘要:背景 在使用 kubeadm 初始化K8S集群 kubeadm init --kubernetes-version=v1.28.2 --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.56.3 --cri-so
阅读全文
摘要:在编译软件遇到 configure: error: in xxx configure: error: no acceptable C compiler found in $PATH 系统缺少C编译器,尤其是 gcc。安装可用的 C 编译器即可。 Centos: yum -y install gcc
阅读全文
摘要:1,背景 在执行 docker run -d xxx 命令下载镜像时,出现如下问题 docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while
阅读全文
摘要:1,背景 执行yum install xxx 时,报错: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=vag error14: curl#6 - "Co
阅读全文
摘要:1、Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 出现这种问题,一般有两种可能: 第一种配置写错了,仔细检查配置。参
阅读全文
posted @ 2025-11-11 19:11
无虑的小猪
摘要:在python中执行Js代码,引入 execjs 库,python代码如下: 执行结果如下: 在导入 execjs 模块前,让Popen的encoding参数锁定为utf-8。 import subprocess from functools import partial subprocess.Po
阅读全文
摘要:启动fastapi,运行服务器,可以正常访问接口,但无法访问docs页面,打开开发者工具发现接口调用了一个 js 脚本 和 css 脚本。 这两个脚本是部署在国外,因为这个原因导致我们没法访问了,调整请求地址,请求国内的资源。修改 fastapi 源码包模块下的 fastapi/openapi/do
阅读全文
摘要:1、乱码场景 新建 文件code.js,详情如下: function fun() { return "我是fun函数"; } 在Python中执行此JS代码: 1 import execjs 2 3 # 读取js 4 with open("code.js", encoding="utf8") as
阅读全文
摘要:ffmpeg下载视频并合并到一个视频中,执行如下命令: ffmpeg -i index.m3u8 -c copy result.mp4 出现 [https @ 000001a69f0bae00] Protocol 'https' not on whitelist 'file,crypto,data'
阅读全文
摘要:1、错误背景 python在安装 aiohttp库 时,出现 Microsoft Visual C++ 14.0 or greater is required的提示: 2、解决方案 按照错误提示,访问 https://visualstudio.microsoft.com/visual-cpp-bui
阅读全文
摘要:在执行压缩文件命令时,出现 tar: Removing leading `/' from member names 的问题,详情如下: dates=$(date -d yesterday +%F%m%d) tar -zcvf /root/backup/$dates.tar.gz /usr/bigda
阅读全文
摘要:启动了任务后,任务一直处于 Preparing状态,无法执行,详情如下: 原因:内存问题,过滤器会检查executor主机空余内存是否会大于6G,若不足6G,则web-server不会将任务交由该主机执行,需要修改 azkabn-web下的azkaban.properties配置文件,去掉 Mini
阅读全文
摘要:Redis完成编译安装,在Linux本机可以登录redis,使用RedisDesktopManage无法完成连接,详情如下: 找到redis.conf配置文件,修改如下内容: 1、注释bind配置 2、保护模式 protected-mode 设置为 no 3、守护进程方式启动 daemonize 设
阅读全文
摘要:安装Redis,执行 install_server.s 脚本时,出现如下报错: 解决方案,注释掉 install_server.sh 中的部分代码,注释代码详情如下: 再次执行 install_server.sh 脚本,结果如下:
阅读全文
摘要:在初始化hive时报错,出现如下问题: 错误原因:hive-site.xml 配置文件中,数据库的地址带有 & 符号。 将数据库地址中的 & 符号调整为 &,详情如下: 再次初始化hive,执行结果如下:
阅读全文
摘要:安装mysql-5.7.32数据库时,使用Navicat工具连接数据库时,出现Host 'xxx' is not allowed to connect to this MySQL server,详情如下: 两种解决方案,任选一个即可: 1、修改mysql数据库用户表数据 执行如下SQL命令: use
阅读全文
摘要:安装mysql-5.7.32数据库时,初次登陆MySQL,执行如下命令获取临时密码,/var/log/mysqld.log 为my.cnf中log-error配置项的内容: grep 'temporary password' /var/log/mysqld.log 获取临时密码:!.IRoNewC7
阅读全文
摘要:安装mysql-5.7.32数据库时,MySQL无法启动 Active: deactivating (stop-sigterm) (Result: exit-code) 查看配置文件中的日志存储位置: view /etc/my.cnf 查看日志存储文件位置:/var/log/mysqld.log 文
阅读全文
摘要:当执行解压命令,出现 tar: Error is not recoverable: exiting now 。 tar -zxvf xxx.tar.gz 错误详情如下: 原因:下载的文件并不是通过 gzip过滤归档,去掉-z参数即可,执行: tar -xvf xxx.tar.gz
阅读全文
摘要:在设置Linux服务器各节点间免密时,出现如下问题: 原因:SSH服务器的配置文件 /etc/ssh/sshd_config ,密码验证服务未打开。 1、编辑 /etc/ssh/sshd_config 文件 在目标服务器node2节点中,编辑 /etc/ssh/sshd_config 文件: sud
阅读全文

浙公网安备 33010602011771号