09 2018 档案

摘要:全局替换 :%s/172.18.0.4/10.10.10.22/g vim 跳转到某一指定行 :12 跳转到某一指定行 查找命令 /pattern<Enter> :向下查找pattern匹配字符串 ?pattern<Enter>:向上查找pattern匹配字符串 使用了查找命令之后,使用如下两个键快 阅读全文
posted @ 2018-09-30 13:17 黑客不黑撒 阅读(125) 评论(0) 推荐(0)
摘要:http://www.linuxidc.com/Linux/2013-02/79156.htm 多台Linux服务器SSH相互访问无需密码 一、环境配置 1、系统:CentOS release 5.6 IP:192.168.4.200 主机名:JW01 2、系统:CentOS release 5.9 阅读全文
posted @ 2018-09-27 17:06 黑客不黑撒 阅读(504) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/chencye/p/6130476.html ssh密钥登录及远程执行命令 1 使用密钥登录 1.1 创建密钥对 1.2 上传公钥文件 1.3 导入公钥信息 1.4 使用密钥对登录 2 远程执行命令 2.1 简单命令 2.2 使用脚本执行多命令 以19 阅读全文
posted @ 2018-09-26 11:42 黑客不黑撒 阅读(1269) 评论(0) 推荐(0)
摘要:一.windows 在windows下就是要写大家熟悉的bat文件,例如:新建一个start.bat,内容如下: java -classpath D:/cmdDemo/lib/log4j-1.2.14.jar;D:/cmdDemo/lib/cmdDemo.jar chb.cmd.test.TestC 阅读全文
posted @ 2018-09-19 14:42 黑客不黑撒 阅读(186) 评论(0) 推荐(0)
摘要:从本地服务器复制到远程服务器: (1) 复制文件: 命令格式: scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file 或者 scp 阅读全文
posted @ 2018-09-15 13:58 黑客不黑撒 阅读(355) 评论(0) 推荐(0)
摘要:linux ls列出目录下所有文件数量 http://blog.hehehehehe.cn/a/12311.htm 查看统计当前目录下文件的个数,包括子目录里的。 ls -lR| grep "^-" | wc -l Linux下查看某个目录下的文件、或文件夹个数用到3个命令:ls列目录、用grep过 阅读全文
posted @ 2018-09-14 15:12 黑客不黑撒 阅读(157) 评论(0) 推荐(0)
摘要:vim /etc/sysconfig/docker #centos下docker配置文件 chkconfig docker on #开机启动docker yum install -y docker #CentOS安装docker,没有启动docker时只显示Client信息。 service doc 阅读全文
posted @ 2018-09-13 18:05 黑客不黑撒 阅读(155) 评论(0) 推荐(0)
摘要:Docker多主机通信 为Docker容器指定自定义网段的固定IP/静态IP地址 第一步:创建自定义网络 备注:这里选取了172.172.0.0网段,也可以指定其他任意空闲的网段 docker network create --subnet=172.172.0.0/16 docker-ice 注:d 阅读全文
posted @ 2018-09-05 17:52 黑客不黑撒 阅读(304) 评论(0) 推荐(0)
摘要:Registry node docker pull registry #下载registry镜像 mkdir -p /home/registry #宿主机创建registry目录 docker tag registry:latest registry:1.0 #为本地镜像添加新标签 docker r 阅读全文
posted @ 2018-09-04 11:06 黑客不黑撒 阅读(281) 评论(0) 推荐(0)
摘要:#pull down centos image FROM centos MAINTAINER pizy@cloudcc.com #设置时间差 RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shang 阅读全文
posted @ 2018-09-03 20:29 黑客不黑撒 阅读(176) 评论(0) 推荐(0)