
00:00:00
外卖卷:非常划算 扫码领劵 省点小钱钱
之前通过 F12 的方法,有幸喜提乌龟壳小鸡两只,在这里记录一下新开系统的一些设置
apt update && apt upgrade -yecho root:[密码] | chpasswd root
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
systemctl restart sshd# 修改系统变量
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
# 保存生效
sysctl -p
# 查看内核是否已开启BBR
lsmod | grep bbr
# 显示如下,即成功
tcp_bbr 20480 2apt -y install ntpdate
timedatectl set-timezone Asia/Shanghai
ntpdate ntp1.aliyun.comsystemctl start supervisord
systemctl disable firewalld
systemctl stop firewalldiptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables-save# 安装 iptables-persistent
apt install iptables-persistent
# 永久保存规则
netfilter-persistent save
netfilter-persistent reloadrm -rf /etc/iptables && reboot
或
rm -rf /etc/iptables/rules.v4
rm -rf /etc/iptables/rules.v6
reboot同时你也需要进入后台配置一下入站规则,我是开放的所有协议
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware -p [password] -port [port]
# 将 [password] 替换成自定义的密码
# 将 [port] 替换成自定义的端口号,-port 参数去掉则默认为 22 端口
# -d 表示 Debian 系统,可换成 -u 表示 Ubuntu 系统
# 10 表示系统版本号,Debian可换成 [7, 8, 9, 10, 11]
# Ubuntu 可换成 [14.04, 16.04, 18.04, 20.04]# 找到 /etc/network/interfaces
# 在这个文件最下面添加一行
iface [设备名] inet6 dhcp
# 将 [设备名] 替换成对应的设备名称,设备名可以在 allow-hotplug 那里找到
# 重启
评论