安装 dnsmasq
sudo apt install dnsmasq
安装 pdnsd
sudo apt install pdnsd
sudo vim /etc/sysctl.conf | |
#add [sysctl_plus] to the end | |
sudo sysctl -p | |
sudo sysctl net.ipv4.tcp_available_congestion_control | |
sudo vim /etc/security/limits.conf | |
#add [limits_plus] to the end | |
sudo vim /etc/profile | |
#add "ulimit -SHn 1024000" to the end |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |