全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2973|回复: 20

【更新】一键网络重装系统 - 神改版(适用于Linux / Windows)

  [复制链接]
发表于 2020-9-15 15:46:42 | 显示全部楼层 |阅读模式
上代码

#Debian/Ubuntu
apt-get update
apt-get install -y xz-utils openssl gawk file

#RedHat/CentOS
yum update
yum install -y xz openssl gawk file


Usage:
        bash InstallNET.sh      -d/--debian [dist-name]
                                -u/--ubuntu [dist-name]
                                -c/--centos [dist-version]
                                -v/--ver [32/i386|64/amd64]
                                --ip-addr/--ip-gate/--ip-mask
                                -apt/-yum/--mirror
                                -dd/--image
                                -a/-m
                                -p/--password

# dist-name:发行版本代号
# dist-version:发行版本号
# -apt/-yum/--mirror:使用定义镜像
# -a/-m:询问是否能进入VNC自行操作。 -a为不提示(一般用于全自动安装), -m为提示。

  1. bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 9 -v 64 -a
复制代码



默认密码:你猜?


赠送神秘代码1:
#!/bin/bash
echo root:Vicer |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot

赠送神秘代码2:
# This line below add by user.
fs.file-max = 104857600
fs.nr_open = 1048576
vm.overcommit_memory = 1
net.ipv4.ip_forward = 1
net.core.somaxconn = 4096
net.core.optmem_max = 262144
net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.netdev_max_backlog = 65536
net.ipv4.tcp_mem = 262144 6291456 8388608
net.ipv4.tcp_rmem = 16384 262144 8388608
net.ipv4.tcp_wmem = 8192 262144 8388608
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_syn_retries = 4
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_fin_timeout = 24
net.ipv4.tcp_keepalive_intvl = 32
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_time = 900
net.ipv4.tcp_retries1 = 3
net.ipv4.tcp_retries2 = 8
#net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_slow_start_after_idle = 0
#net.ipv4.tcp_fastopen = 3
#net.core.default_qdisc = fq
#net.ipv4.tcp_congestion_control = bbr


不用感谢我。我只是搬运工,麻烦在评论区,大声说出 卢本伟牛逼!
发表于 2020-9-15 15:47:25 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2020-9-15 15:49:07 | 显示全部楼层
神...神...神改版,能否只分一个区?
发表于 2020-9-15 15:59:44 来自手机 | 显示全部楼层
net.ipv4.tcp_rmem 等net.ipv4.tcp_mem调太高会有问题,要经常重启才能恢复速度
发表于 2020-9-15 16:05:06 | 显示全部楼层
密码到底是啥????
发表于 2020-9-15 16:15:44 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2020-9-15 16:20:44 | 显示全部楼层
能否把神秘代码也添加到系统中去啊
发表于 2020-9-15 16:23:10 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2020-9-15 16:28:59 | 显示全部楼层
synology 发表于 2020-9-15 16:05
密码到底是啥????

MoeClub.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-3 07:32 , Processed in 0.062943 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表