TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version'

2024年1月23日 没有评论

[root@test docker-compose]# /usr/local/python3/bin/docker-compose -f docker-compose.yml up -d Traceback (most recent call last): File "/usr/local/python3/bin/docker-compose", line 8, in sys.exit(main()) File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/main.py", line 81, in main command_func() File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/main.py", line 200, in perform_command project = project_from_options('.', options) File "/usr/loca...

分类: linux 标签:

oracle中斜线(/)和分号(;)问题

2024年1月10日 没有评论

oracle 执行脚本中的 sql 语句有的语句带结尾有 /,有的结尾只有 ; 对于普通 select、insert 单行语句以 ;表示此 sql 输语句入结束并执行。 对于语句块,也就是带有begin ... end 的代码,结尾的分号;表述整个语句块的输入结束,并保存在缓存中并不执行,需要输入杠 / 来执行缓存中的语句。 ps: / 一般情况下表示再次执行上一次缓存的sql

分类: oracle 标签:

crontab 运行失败不发邮件

2023年11月9日 没有评论

虽然已经配置环境变量MAILTO=, 但是 crontab 执行失败后 /var/log/cron 可以查看到具体报错信息,却没有发送mail邮件。 手动测试邮件是否可以正常发送: 1 echo "Your message here" | mail -s "Subject" root 提示 1 /usr/sbin/sendmail: No such file or directory 安装sendmail 1 yum ins...

分类: linux 标签:

python flask 部署

2023年11月2日 没有评论

ImportError: cannot import name 'cached_property' cd werkzeug,修改__init__.py from werkzeug.utils import cached_property # 这是引入的包 api.py import flask.scaffold flask.helpers._endpoint_from_view_func = flask.scaffold._endpoint_from_view_func import flask_restful #from flask.helpers import _endpoint_from_view_func

分类: linux 标签:

python 各版本及国内下载地址

2023年11月2日 没有评论

python官方各版本下载地址: https://www.python.org/ftp/python/ 国内华为镜像: https://mirrors.huaweicloud.com/python/ Python 第三方库国内镜像下载地址 由于 Python 服务器在国外,因此使用 pip 安装第三方模块或者库的时候,下载速度特别慢,经常出现如下报错: $ socket.timeout: The read operation timed out 为提升下载速度,可以使用国内镜像下载,常用的国内镜像有: 豆瓣 https://pypi.douban.com/simple 阿里云 https://mirrors.aliyun.com/pypi/simple 清华大学 https://pypi.tuna.tsinghua.edu.cn/simp...

分类: linux 标签:

matlab 自定义函数路径找不到问题

2023年10月23日 没有评论

matlab可以使用path命令设置搜索路径来自定义函数给多个工程使用 path('/home/matlab/mylib') 在此目录中自定义文件myfunction.m,注意函数名与文件名同名。 进入matlab环境,执行函数找不到,Unrecognized function or variable 'myfunction'. 需要清理缓存再试。 >> which -all myfunction >> rehash toolboxcache >> which -all myfunction /home/matlab/mylib/myfunction.m

分类: 技术 标签:

Error 1017 received logging on to the standby

2023年9月1日 没有评论

1. 问题描述 Oracle DataGuard日志传输失败,日志信息如下所示, Error 1017 received logging on to the standby ------------------------------------------------------------ Check that the primary and standby are using a password file and remote_login_passwordfile is set to SHARED or EXCLUSIVE, and that the SYS password is same in the password files. returning error ORA-16191 ------------------------------------------------------------ FAL[client, ARC2]: Error 16191 connecting to epmsn for fetching...

分类: oracle 标签:

redhat7 安装 rabbitmq

2023年9月1日 没有评论

安装文件(分别按照以下顺序安装) rpm -ivh erlang-21.3-1.el7.x86_64.rpm yum install socat -y rpm -ivh rabbitmq-server-3.8.8-1.el7.noarch.rpm 设置开机自启 systemctl enable rabbitmq-server.service

分类: linux 标签:

linux mail 命令删除邮件

2023年9月1日 没有评论

mail命令进入 & p                  #显示当前邮件 & 2                  #显示标号为2的文件 & d 1-100        #删除标号 1-100 的邮件,务必随后执行 q命令,保存该操作,否则删不掉; & q                  #退出并保存命令操作内容 & z                  #最新的20封邮件列表 & Z                 #最后一页(20封) 邮件列表

分类: linux 标签:

openwrt history 不保存历史命令

2023年8月28日 没有评论

openwrt ssh 进入主机 history 命令记录了本次ssh执行过的命令 但在退出ssh之后就被清空 最简单的解决办法就是把用户的 shell 解释器换成 Linux 默认的 bash 就可以了 1 opkg update && opkg install bash 编辑 /etc/passwd 文件 修改第一行(第一行就是 root 用户)中的 /bin/ash,改成 /bin/bash

分类: linux 标签: