kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

ubuntu dns覆盖写入127.0.0.53

https://blog.csdn.net/evanxuhe/article/details/90229597

/etc/resolve.conf 一直是 nameserver 127.0.0.53,无法修改,因为 ubuntu17.0之后特有,systemd-resolvd服务会一直覆盖

解决办法

1
2
3
4
5
6
7
8
9
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo apt install unbound
sudo rm -rf /etc/resolv.conf
sudo vim  /etc/NetworkManager/NetworkManager.conf
在 [main] 下面添加
dns=unbound
将dns服务替换为unbound
reboot 开机查看resolve.conf发现nameserver自动配置

system, ubuntu

« 负数的取模运算 ubuntu 18.04增加/etc/rc.local »