上課筆記
  • 20190227
  • 20190227
  • 20190306
  • 20190306
  • 20190313
  • 20190320
  • 20190327
  • 20190327
  • 20190327
  • 20190417
  • 20190424
  • 20190501
  • 20190508
  • 20190515
  • 20190529
  • 20190605
  • 20190917
  • 20190917
  • 20190924
  • 20191001
  • 20191001
  • 20191008
  • 20191008
  • 20191015
  • 20191015
  • 20191022
  • 20191022
  • 20191029
  • 20191029
  • 20191105
  • 20191105
  • 20191119
  • 20191119
  • 20191203
  • 20191203
  • 20191210
  • 20191217
  • 20191217
  • 20191224
  • 20191224
Powered by GitBook
On this page

Was this helpful?

20191119

docker swarm

Previous20191119Next20191203

Last updated 5 years ago

Was this helpful?

ssh 無密碼登入
node1:192.168.56.103
node2:192.168.56.106
node3:192.168.56.111
hostnamectl set-hostname vm1、vm2、vm3
bash
systemctl start sshd
systemctl status sshd
vim /etc/hosts
192.168.56.103 vm1
192.168.56.106 vm2
:wq

ssh-keygen
ssh-copy-id root@vm1
ssh-keygen
ssh-copy-id root@vm2
scp /etc/hosts vm2:/etc/hosts
ping vm1
ping vm2