debian设置固定IP
设置固定IP地址
nano /etc/network/interfaces
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
gateway 192.168.1.1设置DNS服务器
nano /etc/resolv.conf
nameserver 8.8.8.8 设置固定IP地址
nano /etc/network/interfaces
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
gateway 192.168.1.1设置DNS服务器
nano /etc/resolv.conf
nameserver 8.8.8.8 uci set dhcp.lan.dns_service="0"
uci set dhcp.lan.ra_dns="0"
uci commit dhcp
service odhcpd restart 运行提示一下错误
root@VM-0-7-debian:~# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.0-30-amd64
Found initrd image: /boot/initrd.img-6.1.0-30-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
取消以下注释
nano /etc/default/grub
GRUB_DISABLE_OS_PROBER=false
update-grub
安装镜像
docker pull adguard/adguardhome
docker run --name adguardhome\
--restart unless-stopped\
-v /my/own/workdir:/root/adguardhome/work\
-v /my/own/confdir:/root/adguardhome/conf\
-p 53:53/tcp -p 53:53/udp\
-p 3000:3000/tcp\
-d adguard/adguardhome原版配置
docker run --name adguardhome\
--restart unless-stopped\
-v /my/own/workdir:/opt/adguardhome/work\
-v /my/own/confdir:/opt/adguardhome/conf\
-p 53:53/tcp -p 53:53/udp\
-p 67:67/udp -p 68:68/udp\
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp\
-p 853:853/tcp\
-p 784:784/udp -p 853:853/udp -p 8853:8853/udp\
-p 5443:5443/tcp -p 5443:5443/udp\
-d adguard/adguardhome
y-cruncher v0.8.6.9545b.zip
打开 按0--enter---1---enter--8
或者
按2---enter---8---enter---11或者13