自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

richard1230的博客

记录自己的成长过程

  • 博客(8)
  • 收藏
  • 关注

原创 git命令的撤销操作

文章目录撤销`git add .`撤销`Git init`手滑在一个总目录下面输入了git init和Git add .撤销git add .撤销方法:##命令$git rm -r --cached .error: the following files have staged content different from both thefile and the HEAD: ...

2019-12-27 19:58:47 1186 1

原创 python装饰器理解.md

文章目录函数装饰器类装饰器缺点函数装饰器先来看个例子:def foo(*args, **kwargs): print 'args = ', args print 'kwargs = ', kwargs print '---------------------------------------'if __name__ == '__main__': foo(...

2019-12-23 22:51:10 173

原创 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)

文章目录1th2th3th网上找了三种解决方案三种解决方案:1th sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock2th用这个命令查看一下apt-get的相关进程:$ps -e | grep apt 2761 ? 00:00:00 apt.systemd.dai 2765 ...

2019-12-17 17:39:37 202

原创 Error response from daemon: conflict: unable to delete 7f7c5b3bd538 (must be forced)[]

文章目录解决方案解决方案$docker imagesREPOSITORY TAG IMAGE ID CREATED SIZErichard1230/web latest 7f7c5b3bd538 49 minutes ago ...

2019-12-16 15:04:43 792

原创 mac下mysql修改密码以及ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

文章目录修改密码发现错误并解决修改密码修改密码$cd /usr/local/mysql/bin/$./mysqlWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 17Server version: 8.0.18 MySQL Community Server - GP...

2019-12-05 14:34:25 361

原创 mysql的一些问题的记录

文章目录今天早上登陆数据库的时候发现如下问题1.ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)网上查找到这篇文章:https://www.jianshu.com/p/5525156d73b9发现一直找不到mysql.sock这个文件;看了下面这篇之后...

2019-12-05 11:05:26 131

原创 mac下Mysql设置环境变量

文章目录设置Mysql的环境变量echo '#Mysql' >> ~/.bash_profileecho 'export PATH=${PATH}:/usr/local/mysql/bin' >> ~/.bash_profileecho '#快速启动、结束MySQL服务, 可以使用alias命令' >> ~/.bash_profileecho 'ali...

2019-12-04 15:57:43 1131

原创 github/gitlab同时管理多个ssh key

文章目录思路操作方法查看已有的密钥生成新的公钥编辑configSSHKeys测试参考可以先看看另外一篇文章利用 SSH 完成 Git 与 GitHub 的绑定思路ssh 方式链接到 Github/GitLab,需要唯一的公钥,如果想同一台电脑绑定两个Github/GitLab 帐号,需要两个条件:能够生成两对 私钥/公钥push 时,可以区分两个账户,推送到相应的仓库解决方案:生成...

2019-12-01 10:37:54 430 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除