1. 输入命令:ssh-keygen -t rsa -C “xxxx@yyy.com” 设置邮箱 2. 三次回车,完成 3. 输入命令:cat ~/.ssh/id_rsa.pub,回车, 查看生成的公钥 4. 在git里添加公钥 配置用户名及邮箱 git config --global user.n ...
分类:
其他好文 时间:
2020-07-21 11:41:38
阅读次数:
116
Python访问MySQL的步骤 创建connection连接,连接数据库 获取cursor游标对象 执行SQL语句 关闭cursor游标对象 关闭connection连接 import pymysql user = input("username:") pwd = input("password: ...
分类:
数据库 时间:
2020-07-21 10:02:08
阅读次数:
87
?# Ubuntu重置Mysql密码 太久没有用Linux的Mysql,忘记密码。这里记录一下在Ubuntu下重置Mysql密码。 1.使用命令:cat /etc/mysql/debian.cnf 2.使用user和password登陆mysql,然后切换到mysql数据库。缺省有两个数据库:mys ...
分类:
数据库 时间:
2020-07-21 09:48:47
阅读次数:
87
ReactJs as a JavaScript library created by Facebook that lets us build dynamic user interfaces. What this dynamic user interface even means is that we ...
分类:
Web程序 时间:
2020-07-21 09:48:32
阅读次数:
76
集群版本: redis-4.0.14 集群节点: 节点角色 IP redis-master 10.100.8.21 redis-slave1 10.100.8.22 redis-slave2 10.100.8.23 redis-sentinel01 10.100.8.24 redis-sentine ...
分类:
其他好文 时间:
2020-07-21 09:42:29
阅读次数:
76
How to prevent user to login second time when its already logged in. If you are using Forms Authentication, it should already be storing your Authenti ...
分类:
其他好文 时间:
2020-07-21 09:34:28
阅读次数:
78
settings.py配置 1.当前app的应用名称添加进去 INSTALLED_APPS = [ app01, #简写就行 ] 2.MIDDLEWARE中把csrf注释掉,防止post请求发送失败 3.DATABASES = { 'dafault':{ 'ENGINE':'django.db.ba ...
分类:
其他好文 时间:
2020-07-21 09:27:21
阅读次数:
68
using System.Configuration; static void Main(string[] args) { UpdateConfigAppSettings(); ReadConfig(); Console.ReadLine(); } static void UpdateConfigA ...
input { jdbc { #jdbc驱动包位置 jdbc_driver_library => "D:\tools\elk\logstash-7.6.1\ojdbc8-12.2.0.1.jar" #jdbc驱动类 jdbc_driver_class => "Java::oracle.jdbc.dr ...
分类:
数据库 时间:
2020-07-20 22:38:24
阅读次数:
120
1.varchar转为number,用 to_number(列名):select to_number(t.create_user) from 表名 t;2.number转为varchar,用 to_char(列名):select to_char(t.user_role_id) from 表名 t;3 ...
分类:
数据库 时间:
2020-07-20 17:17:48
阅读次数:
83