[[VPS端口命令]]
[[Linux命令手册]]
[[Docker|Compose 常用命令]]
[[反代宝塔配置修改模版]]
命令
切换到root用户
1 | sudo -i |
更新系统和依赖
1 | apt update -y |
1 | apt-get install -y wget && apt-get install sudo |
1 | yum update -y |
防火墙相关
1 | firewall-cmd --state # 查看防火墙状态 |
Debian 开启原生BBR
1 | echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf |
查看系统信息
1 | wget -qO- bench.sh | bash |
修改密码
1 | passwd |
VPS 查找命令
find / -name “config.php”
swap扩容更新、删除[[新开通的服务器要做什么]]
1 | free -m #查看扩容情况 |
1 | sudo swapoff /swapfile #关闭swap |
1 | sudo rm -f /swapfile #删除默认缓存swap文件 |
1 | sudo dd if=/dev/zero of=/swapfile count=2048 bs=1024k #创建2G缓存文件 |
1 | sudo chmod 6666 /swapfile #给文件6666权限 |
1 | sudo mkswap /swapfile #设置swap文件为swapfile |
1 | sudo swapon /swapfile #开启swap |
持续更新
脚本
VPS测速
1 | wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash |
ServerStatus
1 | wget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/status.sh #国外机 |
V-UI
1 | bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) |
甲骨文ARM DD
1 | curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh |
DD:Debian 10 64位
1 | bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a |
回程测试
1 | curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash |
更改设置