码迷,mamicode.com
首页 > 其他好文 > 详细

install ceph by ceph-deploy

时间:2017-10-19 17:37:22      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:bsp   dep   sudoer   节点   etc   拷贝   home   nbsp   echo   

1、在每台ceph节点上都生成一个ceph-deploy用户,密码也为ceph-deply

sudo useradd -d /home/ceph-deploy -m ceph-deploy

passwd ceph-deploy   

(ceph-deploy)

 

echo "ceph-deploy ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph-deploy

sudo chmod 0440 /etc/sudoers.d/ceph-deploy

 

2、在其中一台节点上生成ssh key,并将ssh key 拷贝至其余ceph节点

su ceph-deploy

ssh-keygen 一路回车

ssh-copy-id ceph-deploy@ceph-node1

ssh-copy-id ceph-deploy@ceph-node2

ssh-copy-id ceph-deploy@ceph-node3

 

install ceph by ceph-deploy

标签:bsp   dep   sudoer   节点   etc   拷贝   home   nbsp   echo   

原文地址:http://www.cnblogs.com/elaron/p/7693574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!