1
|
yum install -y dnf-utils zip unzip
|
1
|
yum config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
|
1
|
yum install -y docker-ce
|
1
|
systemctl start docker && systemctl enable docker
|
安装docker-compose
1
|
yum install docker-compose-plugin
|
停止并禁用开机启动
1
2
|
systemctl stop firewalld
systemctl disable firewalld
|
1
|
systemctl status firewalld 或者 firewall-cmd --state
|
开启root登录
1
|
vim /etc/ssh/sshd_config
|
找到passwordAuthentication项,修改成yes
重启ssh
密码设置:sudo passwd user-name