Debian¶
安装¶
静态 IP¶
cat > /etc/network/interfaces <<- EOF
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address 192.168.9.100
netmask 255.255.255.0
gateway 192.168.9.254
EOF
systemctl restart networking
基础服务¶
DNSmasq¶
常见问题¶
Failed to allocate directory watch: Too many open files¶
cat >> /etc/sysctl.conf <<- "EOF"
fs.inotify.max_user_instances=512
fs.inotify.max_user_watches=262144
EOF
sysctl -p
FATA[0000] get apparmor_parser version: apparmor_parser resolves to executable in current directory (./apparmor_parser)¶
解决 FATA[0000] Get http:///var/run... sudo apt-get install apparmor 好神奇