Debian && Ubuntu

  • 配置sudo (Debian)
su -						# 切换到root用户

vi /etc/sudoers
[ Append ]
momo ALL=(ALL:ALL) ALL
  • 配置网卡静态IP
sudo vi /etc/network/interfaces
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug ens33
# iface ens33 inet dhcp
iface ens33 inet static
	address 192.168.0.32
	netmask 255.255.255.0
	gateway 192.168.0.1
	dns-nameservers 58.240.57.33 221.6.4.66
  • 更新
sudo apt upgrade
sudo apt update

-VMWare Tools

sudo apt update
sudo apt install open-vm-tools-desktop
sudo apt install open-vm-tools
  • 禁用防火墙
sudo ufw disable
  • 安装SSH
sudo apt install openssh-server

sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl status ssh
sudo vi /etc/ssh/sshd_config

允许root ssh登录

#PermitRootLogin prohibit-password
修改为
PermitRootLogin yes

sudo systemctl restart ssh
  • xshell上传
sudo apt install lrzsz
  • hosts
sudo vi /etc/hosts

Add

185.199.108.133 raw.githubusercontent.com

  • dns
sudo vi /etc/resolv.conf

nameserver 58.240.57.33
nameserver 221.6.4.66

  • docker config
sudo vi /etc/docker/daemon.json

Add

{
“registry-mirrors”: [
“https://w14ki3ju.mirror.aliyuncs.com”,
“http://hub-mirror.c.163.com”,
“https://registry.docker-cn.com”,
“https://docker.m.daocloud.io”
]
}

Login

sudo docker login --username=xxxx registry.cn-hangzhou.aliyuncs.com
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值