输入python看默认版本,一般是2.7。 1、删除软链接命令 pi@raspberrypi:~ $ sudo rm /usr/bin/python 2、查看本机安装的python版本及路径 pi@raspberrypi:~ $ whereis python python: /usr/bin/pyt ...
分类:
编程语言 时间:
2021-07-14 18:43:59
阅读次数:
0
Django缓存 介绍 ? ? 缓存是将一些常用的数据保存在内存或者memcache中,在设置好的时间内,如果有请求访问这些数据,则不会再去操作数据库、执行逻辑、渲染等操作,而是直接从内存或者memcache的缓存中取取出数据,返回给用户 ? 在动态网站中,用户向服务端发起请求,服务器都会去数据库中 ...
分类:
其他好文 时间:
2021-07-12 18:04:59
阅读次数:
0
cd /etc/yum.repos.d/ rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo curl -o CentOS-Base ...
分类:
其他好文 时间:
2021-07-05 16:52:40
阅读次数:
0
一、SWAP分区大小设置参考: 4G以内的物理内存,SWAP 设置为内存的2倍。 4-8G的物理内存,SWAP 等于内存大小。 8-64G 的物理内存,SWAP 设置为8G。 64-256G物理内存,SWAP 设置为16G。 二、扩充或缩小SWAP分区: [root@node1 ~]# swapon ...
分类:
系统相关 时间:
2021-07-01 17:36:10
阅读次数:
0
before commit, do: git rm --cached <filename> ATTENTION: do not use 'git rm <filename>', this will delete the file from disk if commited, first use: " ...
分类:
其他好文 时间:
2021-07-01 17:07:16
阅读次数:
0
//-n 预览需要删除版本控制的文件列表 git rm -r -n --cached "vendor" //执行删除命令 git rm -r --cached "vendor" //添加文件到.gitignore //提交git commit -m "remove vendor" //提交到远程服务 ...
分类:
其他好文 时间:
2021-07-01 17:03:23
阅读次数:
0
背景 参考了狂神老师的 Docker 教程,非常棒! https://www.bilibili.com/video/BV1og4y1q7M4?p=15 直接运行容器 本地找不到镜像会自动下载 --rm Automatically remove the container when it exits ...
分类:
其他好文 时间:
2021-07-01 16:48:43
阅读次数:
0
1、 rm(list = ls()) dir() for (i in list.files(pattern=".r$")) { source(i) } 2、 rm(list = ls()) dir() for (i in dir()) { if(substr(i,nchar(i)-1,nchar(i ...
分类:
编程语言 时间:
2021-06-29 15:38:29
阅读次数:
0
而且JavaScript既然已经有了Map类型的数据结构,为什么还有一种叫做WeakMap类型的数据结构呢?它和垃圾回收有什么关系? WeakMap很早之前就遇到过,但是没有系统学习过,今天就来对它一探究竟。 初识WeakMap WeakMap对象是一组键值对的集合,其中key是弱引用的WeakMa ...
分类:
其他好文 时间:
2021-06-28 18:19:55
阅读次数:
0
Mac下MySQL卸载方法 由于某种情况下,需要删除mysql。 mac下mysql的DMG格式安装内有安装文件,但没有卸载文件 查了一下,原来得手动去删。把关键点记述在这里,以供查阅。 先停止所有mysql服务。 sudo rm /usr/local/mysql sudo rm -rf /usr/ ...
分类:
数据库 时间:
2021-06-24 18:32:36
阅读次数:
0