异次元

 找回密码
 立即注册
KURUN CLOUD 美国CN2GIA服务器轻云互联 美国香港CN2GIA服务器会员请立即修改密码
查看: 68|回复: 0

VPS常用命令及工具备忘录

[复制链接]

11

主题

31

帖子

1028

积分

金牌会员

Rank: 6Rank: 6

积分
1028
发表于 2024-9-24 01:09:57 | 显示全部楼层 |阅读模式
Linux更新及安装命令
Debian更新:apt-get update && apt-get upgrade
Centos更新:yum update
Debian安装curl:apt-get install curl
Centos安装curl:yum install curl
Debian安装wget:apt-get install wget
Centos安装wget:yum install wget
Centos安装XZ压缩工具:yum install xz
Debian/Ubuntu 基础命令
更新软件源:apt-get update
更新升级所有软件:apt-get upgrade
清理旧版本的软件缓存:sudo apt-get autoclean
清理所有软件缓存:sudo apt-get clean
删除系统不再使用的孤立软件:sudo apt-get autoremove
查看内核版本:uname -a
查看ubuntu版本:cat /etc/issue
查看当前的内存使用情况:free -m
查看当前有哪些进程:ps -A
杀死一个进程:kill id / killall id / kill -9 id
安装 openssh-server:sudo apt-get install openssh-server
确认sshserver是否启动:ps -e | grep ssh
Linux开启原版BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
lsmod | grep bbr
Linux 常用的一键脚本
UnixBench跑分工具测试
wget --no-check-certificate http://tools.laobuluo.com/tools/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
bench.sh 测速脚本
wget -qO- bench.sh | bash
或者
curl -Lso- bench.sh | bash
BestTrace 路由追踪
wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
./besttrace 114.114.114.114
流媒体解锁检测脚本
Github地址:https://github.com/sjlleo/netflix-verify
Netflix 解锁检测脚本
wget -O nf https://github.com/sjlleo/netfli ... nf_2.61_linux_amd64 && chmod +x nf && clear && ./nf
一键DD纯净系统脚本(萌咖) CentOS/Debian/Ubuntu
系统安装完成后的默认用户名为root,默认密码为: MoeClub.org
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a # Debian 11 64位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 20.04 -v 64 -a # Ubuntu 20.04 64位

高级模式
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|异次元 | 繁体中文 本站支持IPv6访问

GMT+9, 2024-10-7 04:25 , Processed in 0.130573 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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