首先建立一个项目目录test_flask_docker,结构如下 app.py为flask项目代码,requirements.txt为项目python依赖库,Dockerfile为构建docker镜像文件 app.py代码如下,注意host设置成0.0.0.0 #!/user/bin/env pyt ...
分类:
其他好文 时间:
2020-06-20 17:03:35
阅读次数:
286
一.配置环境 1.1 Linux环境说明zabbix 安装要求 https://www.zabbix.com/documentation/4.0/zh/manual/installation/requirements [root@localhost bw]# cat /etc/redhat-rele ...
分类:
其他好文 时间:
2020-06-20 13:45:41
阅读次数:
57
首先安装xadmin,pipinstallxadmin,或者下载放到项目根目录都可以,直接运行会报错,主要因为Django中six包已经移除,使用独立的第三方包。需要改的地方有:requirements.txt中django-formtools==2.2需要升级到2.2版本,2.1版本会报错根目录下sites.py中需要替换fromdjango.utilsimportsix==>import
分类:
其他好文 时间:
2020-06-09 18:48:24
阅读次数:
97
1、打开 dnf 配置文件 vi /etc/dnf/dnf.conf 配置如下,主要是关闭gpgcheck=0 : [main] gpgcheck=0 installonly_limit=3 clean_requirements_on_remove=True best=True skip_if_un ...
分类:
其他好文 时间:
2020-06-08 23:57:50
阅读次数:
171
系统:macOS 10.15.5 我想将django项目clone下来跑一下测试用例,按照指导需要先装包: $ python -m pip install -r requirements/py3.txt 发现报错: Running setup.py install for pylibmc ... e ...
分类:
其他好文 时间:
2020-06-07 21:33:16
阅读次数:
95
一、目录结构: pip.conf文件: [global]index-url = https://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com requirements.txt文件: Django==2. ...
分类:
其他好文 时间:
2020-06-07 19:54:55
阅读次数:
82
使用selenium 完成12306自动登录 运行环境 python3.7 pycharm 需要安装以下包 pip install -r requirements.txt certifi==2020.4.5.1 chardet==3.0.4 idna==2.9 Pillow==7.1.2 reque ...
分类:
其他好文 时间:
2020-06-07 14:58:56
阅读次数:
68
本文搭建环境:win10+sonarqube6.7+mysql5.7+64位 这是sonarqube官方文档:https://docs.sonarqube.org/6.7/Requirements.html,可以根据要求安装匹配版本 一、mysql5.7安装 (一)mysql5.7下载 https: ...
mysql5.7设置简单密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 【问题】 有时候,只是为了自己测试,不想密码设置得那么复杂,譬如只想设置root的密码为123456。 ...
分类:
数据库 时间:
2020-05-31 22:10:16
阅读次数:
92
安装MySQL报错 : ERROR 1819 (hy000): Your password does not satisfy the current policy requirements MySQL5.7为root用户随机生成了一个密码,在error log中,关于error log的位置,如果安 ...
分类:
数据库 时间:
2020-05-26 18:44:24
阅读次数:
162