1 | cat >> /etc/sysctl.conf << EOF |
bbr魔改版
发表于
分类于
bbr
kvm debian:
1 | wget https://github.com/tcp-nanqinlang/general/releases/download/3.4.5.1/tcp_nanqinlang-pro-3.4.5.1-nocheckvirt.sh |
阿里云ddns
发表于
安装 bind-dig,curl,openssl-util
wget https://raw.githubusercontent.com/fyfh/AliDDNSBash/master/ali_ddns.sh
修改 setting字
1 | AccessKeyId="MyID" |
如果不清楚DomainRecordId的话,修改main函数,在里面调用describe_record,如:
1 | main() |
执行
修改main函数:
1 | main() |
执行
加入cron
锐速一键
发表于
分类于
锐速
1 | wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh |
1 | chattr -i /serverspeeder/etc/apx* && /serverspeeder/bin/serverSpeeder.sh uninstall -f |
vps时间设置
发表于
设置时区为北京时间
1 | rm -rf /etc/localtime |
设置ntp同步时间
debian
1 | apt-get update |
centos
1 | yum install ntp ntpdate -y |
1 | service ntpd stop #停止ntp服务 |
完成
整理1 Linux命令行修改IP、网关、DNS
发表于
分类于
整理
方法1, 重启后失效
修改ip,子网掩码
1 | ifconfig eth0 192.168.1.18 netmask 255.255.255.0 |
修改网关
1 | route add default gw 102.168.0.254 |
修改dns
1 | echo "nameserver x.x.x.x" >> /etc/resolv.conf |
方法2, 永久生效
修改添加
1 | BOOTPROTO=static #dhcp 改为static |
Debian8,9,10 ubuntu 16.04官方完整源列表
发表于
Debian 10 源列表 (sources.list)
1 | deb http://ftp.us.debian.org/debian/ buster main non-free contrib |
Debian 9 源列表 (sources.list)
1 | deb http://ftp.us.debian.org/debian/ stretch main non-free contrib |
Debian 8 源列表 (sources.list)
1 | deb http://ftp.us.debian.org/debian/ jessie main non-free contrib |
Ubuntu 16.04 源列表 (sources.list)
1 | deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse |
vps线路
发表于
分类于
vps 线路
1 | apt install -y wget zip |
1 | unzip besttrace* |
1 | chmod +x besttrace |
1 | ./besttrace 119.6.6.6 |
Debian 8 网络重装
发表于
root密码: MoeClub.org
1 | apt-get install -y xz-utils openssl gawk file |
1 | bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 8 -v 64 -a |
vps带宽测试
发表于
分类于
vps
1 | wget -qO- bench.sh | bash |