centos7 Minimal 安装
// 安装openssh-serve
yum install openssh-server
// 启动ssh
systemctl start sshd.service
// 自启动
systemctl enable sshd.service
// 查看端口是否运行
netstat -an | grep 22
// 配置文件在 /etc/ssh/sshd_config,默认端口为22
关闭防火墙
// 查看防火墙状态
systemctl status firewalld.service
// 停止防火墙
systemctl stop firewalld.service
// 永久关闭防火墙
systemctl disable firewalld.service
安装docker
// 一键安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
// 启动
systemctl start docker
// 守护进程重启
systemctl daemon-reload
// 重启
systemctl restart docker / service docker restart
// 关闭
docker service docker stop / docker systemctl stop docker
// 开机自启
systemctl enable docker
可能会报镜像错误修改镜像地址 /etc/docker/daemon.json
{
"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}
安装自动补全的包(mini安装没有需要手动安装可能需要重启)
yum -y install bash-completion
青龙面板
wget -q https://raw.githubusercontents.com/Oreomeow/VIP/main/Scripts/sh/ql.sh -O ql.sh && bash ql.sh