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