[toc]
ubuntu18.04使用记录
1.设置静态IP
//编辑文件
root@ubuntu18:~# cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
ethernets:
enp0s5: #⚠️这里要看一下网卡的名称
dhcp4: false
addresses: [10.0.0.15/24]
gateway4: 10.0.0.1
nameservers:
addresses: [223.5.5.5,114.114.114.114]
version: 2
renderer: networkd
//使设置生效
netplan apply
2.开启ssh服务
//ubuntu-18.04desktpo版默认只安装ssh-agent
sudo apt -y install openssh-server
//启动服务
sudo service ssh start
3.安装python3.6
//ubuntu18.04