blog icon indicating copy to clipboard operation
blog copied to clipboard

Results 100 blog issues
Sort by recently updated
recently updated
newest added
trafficstars

grep 命令太强大了,再加上现实需求是多变的,本文只介绍实例 ### 单文件查询 查询单个文件(区分大小写): ```shell root@host-1:~# grep 'root' /etc/passwd ``` 增加 `-i` 参数忽略大小写: ```shell root@host-1:~# grep -i 'Root' /etc/passwd ``` ### 递归查询 主要用到了 `-R` 或 `-r` 参数,两者有一个简单的不同之处。 ```shell root@host-1:~/test#...

由于国内墙的原因,安装 Docker 会比较慢。一般情况下我们都会找源,安装的话用阿里云的源: https://mirrors.aliyun.com/ 关于安装,可以参考: https://yq.aliyun.com/articles/110806 ## 配置 本文介绍下安装后的配置 本文基于 Ubuntu 16.04,14.04 及以前的版本由于 Ubuntu 16.04 支持 systemd 的原因会有很大差异 在安装 Docker 结束后,修改 `/lib/systemd/system/docker.service` 文件,替换 `ExecStart` 参数为如下: ``` ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H...