三台服务器的密码都为:Pwd redis主服务器*1(IP:172.28.0.8:6379) 配置文件 #设置当前服务器密码为Pwdrequirepass "Pwd" #设置连接的主服务器为Pwd。 #这时候有人会疑问这个不是主服务器么?为什么还要设置主服务器的连接密码? # 如果当前服务器mast ...
分类:
其他好文 时间:
2020-05-28 13:49:26
阅读次数:
60
恢复内容开始 现象: 使用Eclipse提交git代码,报错信息如下: Can't connect to any repository: https://github.com/InterFF/abc.git (https://github.com/InterFF/abc.git: authentic ...
分类:
系统相关 时间:
2020-05-28 12:56:33
阅读次数:
278
1. 导入 django user 表继承类 :AbstractUser from django.db import models # Create your models here. #引入django自带的user表,方便下方继承 from django.contrib.auth.models ...
分类:
其他好文 时间:
2020-05-28 11:37:26
阅读次数:
117
Django默认提供了认证系统Auth模块,认证的时候,会使用auth模块里面给提供的表。认证系统包含: 用户管理 权限 用户组 密码哈希系统 用户登录或内容显示的表单和视图 一个可插拔的后台系统 admin Django默认用户的认证机制依赖Session机制,在项目中将引入JWT认证机制,将用户 ...
分类:
其他好文 时间:
2020-05-28 01:01:48
阅读次数:
82
def auth(db_type): def deco(func): def wrapper(*args, **kwargs): name = input('your name>>>:'.strip()) pwd = input('your password>>>:'.strip()) if db_ ...
分类:
编程语言 时间:
2020-05-27 20:43:32
阅读次数:
89
REST Framework接口规范 一 、发展及其背景介绍# 网络应用程序,分为前端和后端两个部分。当前的发展趋势,就是前端设备层出不穷(手机、平板、桌面电脑、其他专用设备…)。因此,必须有一种统一的机制,方便不同的前端设备与后端进行通信。这导致API构架的流行,甚至出现APIFirst的设计思想 ...
分类:
其他好文 时间:
2020-05-27 18:47:55
阅读次数:
61
C:\Users\Desktop\homeWork\Django_stu_man>python manage.py migrate Operations to perform: Apply all migrations: admin, app01, auth, contenttypes, sessi ...
分类:
移动开发 时间:
2020-05-27 18:45:16
阅读次数:
86
注意:impyla 既可以连接impala, 也可以连接hive 环境 : windows10 python版本:3.6 hive版本:1.1 亲测可用! impyla安装过程 安装依赖 pip install bit_array pip install thrift pip install thr ...
分类:
编程语言 时间:
2020-05-27 18:25:56
阅读次数:
148
websocket 后台新订单通知 —— Laravel 5.8 Laravel-echo-server教程 PHPSocket.IO,PHP跨平台实时通讯框架 PHPSocket.IO是PHP版本的Socket.IO服务端实现,基于workerman开发,用于替换node.js版本Socket.I ...
分类:
Web程序 时间:
2020-05-27 16:00:05
阅读次数:
193
2、设置root密码 sudo passwd->输入当前密码->输入新密码 6、开启root登录 /etc/pam.d/ 下的gdm-autologin 和 gdm-password 先改为777权限 再用Gedit打开 注释掉 #auth required pam_succeed_if.so us ...
分类:
系统相关 时间:
2020-05-26 20:52:03
阅读次数:
129