拿到一台全新的linux服务器需要做什么?

拿到一台全新的linux服务器需要做什么?

修改系统时间

将系统调整为你使用的时间
例:上海时间

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

更新软件包

ubuntu/debian更新

apt-get update -y && apt-get install curl -y

注:如果你的操作系统已经有很长一段时间没有进行更新,需要更新的软件包数量相对较多。
可以运行

apt-get upgrade -y
apt-get update

来进行更新

centos更新

yum update -y && yum install curl -y

ip问题

ip问题篇

docker安装

docker安装篇

安装swap

安装swap篇

DD系统

DD系统篇

使用密钥进行ssh

使用密钥篇

挂载硬盘

硬盘挂载篇


安装bbr/bbr plus

通过 curl 命令安装 via curl to install script

参考

curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/install_kernel.sh && chmod +x ./install_kernel.sh && ./install_kernel.sh

打开脚本

./install_kernel.sh

或者一键脚本

wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

打开脚本

./tcp.sh

vps测试脚本

VPS融合怪服务器测评脚本

支持系统:Ubuntu 18+,Debian 8+,centos 7+,Fedora 22+,Almalinux 8.5+, Arch

交互形式
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)

bash <(wget -qO- --no-check-certificate https://github.com/spiritLHLS/ecs/raw/main/ecs.sh)
bash <(wget -qO- bash.spiritlhl.net/ecs)

测速脚本

photo_2023-04-01_17-58-57.jpg
对应 speedtest.net 的自动更新测速服务器ID的测速脚本

bash <(wget -qO- bash.spiritlhl.net/ecs-net)

bash <(wget -qO- --no-check-certificate https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-net.sh)

国内机

bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-net.sh)

涵盖中国三大运营商、香港、台湾的测速节点,默认三网测速每个运营商选择本机ping值最低的两个节点测速,节点列表大概每7天自动更新一次。

检查是否超售脚本

wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh

打开脚本

bash memoryCheck.sh

流媒体解锁单项 详细版

bash <(curl -L -s media.ispvps.com)
xy大佬的测试脚本

github地址

默认双栈检测:
bash <(curl -Ls IP.Check.Place)
LICENSED UNDER CC BY-NC-SA 4.0