Docker
1、创建容器
允许后台运行任务
docker run --name centos7 --privileged=true -itd centos:7 /usr/sbin/init
2、提交镜像修改
docker commit -a “gaoshaozhen” -m “修改内容” containerId image:version
Heketi
安装heketi
yum install -y heketi heketi-client
systemctl enable heketi
systemctl restart heketi
systemctl status heketi
##连接gfs集群
heketi-cli --server http://localhost:8080 opology load --json=/etc/heketi/gfs.json
ssh
yum install -y openssl openssh-server openssh-clients
用vim打开配置文件/etc/ssh/sshd_config
PermitRootLogin,PubkeyAuthentication的设置打开。
创建秘钥
ssh-keygen -t rsa
~/.ssh 将会出现两个秘钥文件,秘钥所属者属于当前登录用户
id_rsa id_rsa.pub
进入~/.ssh 目录
cp id_rsa.pub authorized_keys
A机器有id_rsa id_rsa.pub,B机器有authorized_keys,A就可以直接ssh登录B