技术

技术复盘,实践存档。

解决oracle报Ora-04031错误

错误现象: 04031, 00000, "unable to allocate %s bytes of shared memory "%s","%s", "%s","%s" " 这个错误临时解决办法: alter system flush shared pool; 但是这个方式治标不治本,过段时间还是会出现这个错误。 根本的解决办法: ALTER SYST

解决libxml/xmlversion.h: No such file or directory

报错如下: /tmp/pip build imUeln/lxml/src/lxml/includes/etree defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory include "libxml/xmlversion.h" ^ compilation terminated. error: c

解决libxslt/xsltconfig.h: No such file or directory

pip 安装 lxml报错如下: libxslt/xsltconfig.h: No such file or directory centos解决办法: sudo yum install libxslt devel ubuntu解决办法: sudo apt install libxslt dev 然后还需要做如下操作: sudo ln s

linux开机直接进入命令行模式

vim /etc/inittab 默认内容为: id:5:initdefault: 改为: id:3:initdefault: 修改了配置文件系统启动直接进入命令行,这时用Ctrl+Alt+F7不会进入图形界面,需要使用startx命令进入图形界面。 绍一下init命令启动级别的含义(0 6): 0:停机 1:单用户形式,只root进行维护 2:多用

ImportError: No module named click

安装click: pip install click 依然提示: ImportError: No module named click 于是去查看了下e:\anaconda3\lib\site packages,发现里边并没有click文件,于是搜索到click文件,将这个文件夹放到e:\anaconda3\lib\site packages下,再执行启动,竟然可以

python11报错cannot import name 'Container' from 'collections'

部署项目的时候报错: ImportError: cannot import name ‘Mapping‘ from ‘collections‘ 修复的方法也很简单: 将如下代码: from collections import Mapping from collections import MutableMapping 修改为: from collectio

pip找不到ibpq-fe.h头文件的解决方案

控制台错误信息 libpq fe.h: No such file or directory 解决方法很简单,安装postgresql devel: yum install postgresql devel 问题解决。

根据输入的时间区间删除指定目录中的目录

1.进入脚本所在路径 cd /opt/TongWeb7.0/bin 2.执行脚本 python3 cleanCacheFiles.py "2023 10 10 10:10" "2024 10 10 10:10" 说明:第一个时间为开始时间,第二个时间为结束时间。 可以只输入开始时间,那么结束时间为执行脚本的当前时间。 双引号不能省略,因为日期和时间中间有空格会识别为