[email protected]:~# wget https://bootstrap.pypa.io/get-pip.py [email protected]:~# python3 get-pip.py Traceback (most recent call last): File "/root/get-pip.py", line 24556, in <module> m…
Introduction Bash completion is a useful tool for completion of file paths, commands etc. By default it is enabled on Ubuntu but not on Debian. With two simple steps it can al…
$# 是传给脚本的参数个数$0 是脚本本身的名字$1 是传递给该shell脚本的第一个参数$2 是传递给该shell脚本的第二个参数$@ 是传给脚本的所有参数的列表$* 是以一个单字符串显示所有向脚本传递的参数,与位置变量不同,参数可超过9个$$ 是脚本运行的当前进程ID号$? 是显示最后命令的退出状态,0表示没有错误,其他表示有错误$! 是后台运…
Redis 提供了不用类型的持久化选项: RDB(Redis Database): RDB是按照指定的时间间隔执行数据的快照。如果Redis意外退出或机器意外关机,那么在此启动Redis时数据会自动恢复,但是可能会丢失一个时间时间段的数据。AOF (Append Only File): AOF持久化会记录服务器接收到的每个写操作,这些操作…
vi /etc/docker/daemon.json { "ipv6": true, "fixed-cidr-v6": "fd00::/80", "experimental": true, "ip6tables": true } systemctl restart docker test docker run --rm -it busybox pi…
Common Exceptions in Selenium Web driver Exception nameDescriptionElementNotVisibleExceptionThis type of Selenium exception occurs when an existing element in DOM has a featur…
有时需要使用 root 权限,比如安装软件、启动服务等操作时就需要用到 sudo 命令来提升权限才能进行操作。而新添加的普通用户是没有权限进行 sudo 操作的,所以我们需要对普通用户授予 sudo 权限。授予 sudo 权限有三个方法,第一个是把用户添加到 sudo 用户组,第二个是修改 sudo 配置文件 (etc/sudo…
Linux 使用 adduser 与 useradd 添加普通用户 前言 在 Linux 操作系统中,添加用户可以使用 useradd 和 adduser 这两个命令。曾经在添加用户的实践中遇到过一些坑,比如使用 useradd 命令添加用户后无法正常使用,对 adduser&n…
解决办法: sudo pip install --upgrade urllib3 sudo pip install --upgrade requests 根本原因是: requests本身自带urllib3这个库的副本,在这个库的子目录下; 解决方案就是要么升级库,或者重新安装现有的版本,可以强制安装:pip install --force-rei…
Selenium是一个用电脑模拟人操作浏览器网页 安装一个浏览器 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo sh -c 'echo "deb [arch=amd64] http://dl.googl…