服务器/VPS一键shell脚本大全

1,312次阅读
没有评论

共计 15064 个字符,预计需要花费 38 分钟才能阅读完成。

提醒:本文最后更新于 2021-11-13 21:47,文中所关联的信息可能已发生改变,请知悉!

0、Superspeed.sh

使用全国各地三大运营商的 speedtest 测速节点进行全面测速。

bash <(curl -Lso- https://git.io/superspeed)

服务器 /VPS 一键 shell 脚本大全

1、VPS 测试

wget -qO- bench.sh | bash

# 测试 VPS 基础信息,以及下载速度,来自官网 (https://bench.sh/)

2、国内测试

wget -qO- git.io/superbench.sh | bash

# 主要包括 VPS 硬件信息,国内节点测试,电信、联通、移动,来自老鬼

服务器 /VPS 一键 shell 脚本大全

3、基础测试

wget -N --no-check-certificate https://raw.githubusercontent.com/moranchenxi/ZBench/master/ZBench-CN.sh &amp;&amp; bash ZBench-CN.sh

英文版:

wget -N --no-check-certificate https://raw.githubusercontent.com/moranchenxi/ZBench/master/ZBench.sh &amp;&amp; bash ZBench.sh

# 基于 superbench 脚本,增加了路由和 ping 测试,区别中英文

4、网速测试

wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh &amp;&amp; chmod +x superspeed.sh &amp;&amp; 
./superspeed.sh

# 主要包括国内的一些节点进行专项测试,电信、联通、移动,来自老鬼

5、Ping 测试

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/uPing/master/uping.py<br />python uping.py

# 一款长时间 ping 测试 py 脚本

6、SuperSpeed 全面测速版

bash &lt;(curl -Lso- https://git.io/superspeed)

7、秋水逸冰一键测试脚本 bench.sh

wget -qO- bench.sh | bash

或者

curl -Lso- bench.sh | bash

命令 2:

wget -qO- 86.re/bench.sh | bash

或者

curl -so- 86.re/bench.sh | bash

服务器 /VPS 一键 shell 脚本大全

8、html5 网速程序

https://github.com/adolfintel/speedtest

# 需要 php 环境,下载后解压即可运行,无须安装

9、锐速 /BBR 集成一键包

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" &amp;&amp; chmod +x tcp.sh &amp;&amp; ./tcp.sh

# 一键安装锐速 /bbr,以及魔改等,支持卸载、升级等操作。

10、锐速一键包

wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh &amp;&amp; bash serverspeeder.sh

# 一键安装锐速破解全功能版,不支持 openvz 架构,来自 91yun(https://www.91yun.co/archives/683)

11、GoogleBBR 一键脚本

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh&amp;&amp; chmod + x bbr.sh &amp;&amp; ./bbr.sh

# 一键安装并开启 bbr 功能,google 出品的一种 TCP 拥塞算法,不支持 openvz 虚拟架构。

12、锐速一键包

wget --no-check-certificate -O appex.sh https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh &amp;&amp; chmod +x appex.sh &amp;&amp; bash appex.sh install

# 另一位爱好者开发的锐速一键安装脚本,开发:https://github.com/0oVicero0/serverSpeeder_Install(看了下是萌卡大佬的)

13、FS 一键包

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/finalspeed/master/install_fs.sh &amp;&amp; bash install_fs.sh

# 一键安装 finalspeed 功能,支持全系架构

14、自动备份脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/Himly/vps-shell/master/AutoBackupToFtp.sh<br />chmod +x AutoBackupToFtp.sh<br />bash AutoBackupToFtp.sh

# 每天自动备份 MYSQL 及打包网站目录

15、VPS 跑分测试

<p>wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh<br />chmod +x unixbench.sh<br />./unixbench.sh</p><p> </p>

16、Linux 中使用路由追踪测试 VPS 回程路由

Linux 中使用路由追踪测试 VPS 回程路由

 浏览器访问 谷歌网站
Shadowsocks 客户端 通知 Shadowsocks 服务端
Shadowsocks 服务端 获取 谷歌网站数据
Shadowsocks 服务端(VPS)通过上行把 谷歌网站数据 传回给 Shadowsocks 客户端
浏览器显示 收到的 谷歌网站数据
# 除非你是上传文件,否则大部分情况下,都是 VPS 把文件传回给你,经过的是回程路由。

17、vps 一键测速整合脚本

使用方法:

wget vpstest.cn/it && bash it

wget git.io/vpstest && bash vpstest

wget -O it vpstest.cn && bash it

服务器 /VPS 一键 shell 脚本大全
整合了
1. bench.sh
2. LemonBench
3. superspeed
4. superbench 修复版
5. 91yuntest
6. ZBench
7. superbench 修复 + 多节点版
8. UnixBench
9. GeekBench5
10.kos 回程测试
11. 超内存测试
12. 路由测试

18、跑分测试

VPS 硬件配置 AES 指令集是 / 否
硬盘读写:4k 64k 512k 1m 文件读写(IOPS 测试 )
国外节点测速 GB5 benchmark

curl -sL yabs.sh | bash

服务器 /VPS 一键 shell 脚本大全

 

或者

curl -fsSL http://ilemonra.in/LemonBenchIntl | bash -s fast
wget -qO- http://ilemonra.in/LemonBenchIntl | bash -s fast

输出形式

LemonBench Server Test Tookit 20201005 Intl BetaVersion (C)iLemonrain. All Rights Reserved.
==========================================================================================
 
 [Info] Bench Start Time: 2021-03-22 15:52:37
 [Info] Test Mode: Fast Mode
 

 -> System Information

 OS Release:		CentOS Linux 7.8.2003 (x86_64)
 CPU Model:		Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz  2.60 GHz
 CPU Cache Size:	16384 KB
 CPU Number:		4 vCPU
 VirtReady:		Yes (Nested Virtualization)
 Virt Type:		KVM
 Memory Usage:		779.73 MB / 5.67 GB
 Swap Usage:		[No Swapfile/Swap Partition]
 Boot Device:		/dev/vda1
 Disk Usage:		6.24 GB / 82.54 GB
 CPU Usage:		1.5% used, 0.0% iowait, 0.0% steal
 Load (1/5/15min):	0.38 0.11 0.14 
 Uptime:		0 Days, 2 Hours, 17 Minutes, 12 Seconds
 Kernel Version:	3.10.0-1127.el7.x86_64
 Network CC Method:	cubic + pfifo_fast

 -> Network Infomation

 IPV4 - IP Address:	[US] 107.150.4.35
 IPV4 - ASN Info:	AS8100 (ASN-QUADRANET-GLOBAL - QuadraNet Enterprises LLC, US)
 IPV4 - Region:		United States California Los Angeles
 
 -> Media Unlock Test 
 
 HBO Now:				Yes
 Bahamut Anime:				No
 Abema.TV:				No
 Princess Connect Re:Dive Japan:	No
 BBC:					No
 BiliBili China Mainland Only:		No
 BiliBili Hongkong/Macau/Taiwan:	No
 Bilibili Taiwan Only:			No

 -> CPU Performance Test (Fast Mode, 1-Pass @ 5sec)

 1 Thread Test: 		766 Scores
 4 Threads Test: 		2704 Scores

 -> Memory Performance Test (Fast Mode, 1-Pass @ 5sec)

 1 Thread - Read Test :		16648.80 MB/s
 1 Thread - Write Test:		12412.51 MB/s

 -> Disk Speed Test (4K Block/1M Block, Direct Mode)

 Test Name		Write Speed				Read Speed
 100MB-4K Block		20.9 MB/s (5107 IOPS, 5.01s)		23.5 MB/s (5727 IOPS, 4.47s)
 1GB-1M Block		337 MB/s (321 IOPS, 3.11s)		396 MB/s (377 IOPS, 2.65s)

 -> Speedtest.net Network Speed Test

 Node Name			Upload Speed	Download Speed	Ping Latency	Server Name
 Speedtest Default		90.38 MB/s	101.28 MB/s	0.46 ms		Wiline Networks (United States Los Angeles, CA)
 China, Beijing CU  		25.60 MB/s	36.56 MB/s	214.15 ms	Beijing Unicom (China Beijing)
 China, Shanghai CT 		0.18 MB/s	48.73 MB/s	144.15 ms	China Telecom (China Shanghai)
 China, Hangzhou CM 		Fail: Timeout Exceeded after 60 seconds

 -> Traceroute Test (IPV4)

Traceroute to China, Beijing CU (TCP Mode, Max 30 Hop)
============================================================
traceroute to 123.125.99.1 (123.125.99.1), 30 hops max, 32 byte packets
 1  10.4.41.1  0.45 ms  *  LAN Address
 2  66.212.28.1  0.67 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34  1.61 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  204.152.204.2  1.71 ms  AS8100  United States, California, Los Angeles, quadranet.com
 5  207.254.191.42  3.19 ms  AS19174  United States, California, Los Angeles, ChinaUnicom
 6  219.158.98.49  163.21 ms  AS4837  China, ChinaUnicom
 7  219.158.3.29  180.39 ms  AS4837  China, ChinaUnicom
 8  219.158.4.169  176.57 ms  AS4837  China, ChinaUnicom
 9  202.96.12.82  149.16 ms  AS4808  China, Beijing, ChinaUnicom
10  219.158.15.33  172.97 ms  AS4837  China, ChinaUnicom
11  124.65.194.138  173.80 ms  AS4808  China, Beijing, ChinaUnicom
12  124.65.194.138  182.28 ms  AS4808  China, Beijing, ChinaUnicom
13  124.65.194.134  175.97 ms  AS4808  China, Beijing, ChinaUnicom
14  *
15  *
16  123.125.99.1  185.19 ms  AS4808  China, Beijing, ChinaUnicom

Traceroute to China, Beijing CT (TCP Mode, Max 30 Hop)
============================================================
traceroute to 180.149.128.9 (180.149.128.9), 30 hops max, 32 byte packets
 1  10.4.41.1  0.31 ms  *  LAN Address
 2  66.212.28.1  0.89 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34  1.88 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  *
 5  218.30.48.145  1.01 ms  AS4134  United States, California, Los Angeles, ChinaTelecom
 6  59.43.182.81  132.81 ms  *  China, ChinaTelecom
 7  59.43.247.125  155.16 ms  *  China, ChinaTelecom
 8  202.97.12.129  161.62 ms  AS4134  China, ChinaTelecom
 9  180.149.128.9  175.34 ms  AS23724  China, Beijing, ChinaTelecom

Traceroute to China, Beijing CM (TCP Mode, Max 30 Hop)
============================================================
traceroute to 211.136.25.153 (211.136.25.153), 30 hops max, 32 byte packets
 1  10.4.41.1  0.37 ms  *  LAN Address
 2  66.212.28.1  4.71 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34  0.60 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  64.124.85.221  0.68 ms  AS6461  United States, California, Los Angeles, zayo.com
 5  *
 6  *
 7  206.223.123.137  2.62 ms  *  United States, California, Los Angeles, equinix.com
 8  *

19、一键回程测试脚本

目前共有 8 个测试节点,分别是:广州电信,上海电信,厦门电信,重庆联通,四川联通,上海移动,成都移动,成都教育网。

wget -qO- git.io/besttrace | bash
 广州电信
traceroute to 14.215.116.1 (14.215.116.1), 30 hops max, 32 byte packets
 1  10.4.41.1  0.31 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  1.72 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.32.static.quadranet.com (96.44.175.32)  0.53 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  218.30.48.145  1.08 ms  AS4134  United States, California, Los Angeles, ChinaTelecom
 5  59.43.189.41  153.89 ms  *  China, ChinaTelecom
 6  59.43.244.130  151.73 ms  *  China, ChinaTelecom
 7  202.97.38.94  154.78 ms  AS4134  China, ChinaTelecom
 8  202.97.66.153  154.97 ms  *  China, ChinaTelecom
 9  113.96.4.142  155.11 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
10  121.14.50.210  156.06 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
11  183.56.128.10  155.48 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
12  14.215.116.1  156.43 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom

----------------------------------------------------------------------
上海电信
traceroute to 101.95.120.109 (101.95.120.109), 30 hops max, 32 byte packets
 1  10.4.41.1  0.21 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  5.36 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.32.static.quadranet.com (96.44.175.32)  7.71 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  218.30.48.145  23.50 ms  AS4134  United States, California, Los Angeles, ChinaTelecom
 5  59.43.189.33  163.14 ms  *  China, ChinaTelecom
 6  59.43.244.114  180.16 ms  *  China, ChinaTelecom
 7  202.97.90.30  159.92 ms  AS4134  China, ChinaTelecom
 8  202.97.61.85  176.11 ms  AS4134  China, ChinaTelecom
 9  101.95.120.109  191.61 ms  AS4812  China, Shanghai, ChinaTelecom

----------------------------------------------------------------------
厦门电信
traceroute to 117.28.254.129 (117.28.254.129), 30 hops max, 32 byte packets
 1  10.4.41.1  0.16 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  0.60 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.32.static.quadranet.com (96.44.175.32)  0.42 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  218.30.48.145  68.95 ms  AS4134  United States, California, Los Angeles, ChinaTelecom
 5  59.43.182.78  213.09 ms  *  China, ChinaTelecom
 6  *
 7  59.43.130.113  223.60 ms  *  China, ChinaTelecom
 8  59.43.143.2  245.73 ms  *  China, ChinaTelecom
 9  *
10  27.159.81.198  250.21 ms  AS133775  China, Fujian, Xiamen, ChinaTelecom
11  117.25.141.106  251.81 ms  AS133775  China, Fujian, Xiamen, ChinaTelecom
12  117.28.254.129  256.90 ms  AS133775  China, Fujian, Xiamen, ChinaTelecom

----------------------------------------------------------------------
重庆联通
traceroute to 113.207.25.138 (113.207.25.138), 30 hops max, 32 byte packets
 1  10.4.41.1  0.23 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  4.66 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34.static.quadranet.com (96.44.175.34)  0.42 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  china.unicom (204.152.204.2)  1.29 ms  AS8100  United States, California, Los Angeles, quadranet.com
 5  207.254.191.102  2.62 ms  AS19174  United States, California, Los Angeles, ChinaUnicom
 6  219.158.96.33  149.51 ms  AS4837  China, ChinaUnicom
 7  219.158.97.26  149.48 ms  AS4837  China, ChinaUnicom
 8  219.158.24.125  167.90 ms  AS4837  China, ChinaUnicom
 9  219.158.22.74  192.04 ms  AS4837  China, ChinaUnicom
10  113.207.25.138  191.20 ms  AS4837  China, Chongqing, ChinaUnicom

----------------------------------------------------------------------
成都联通
traceroute to 119.6.6.6 (119.6.6.6), 30 hops max, 32 byte packets
 1  10.4.41.1  0.25 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  11.55 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34.static.quadranet.com (96.44.175.34)  0.42 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  china.unicom (204.152.204.2)  1.30 ms  AS8100  United States, California, Los Angeles, quadranet.com
 5  207.254.191.125  1.49 ms  AS19174  United States, California, Los Angeles, ChinaUnicom
 6  219.158.16.93  150.75 ms  AS4837  China, ChinaUnicom
 7  219.158.16.69  151.38 ms  AS4837  China, ChinaUnicom
 8  219.158.5.149  165.05 ms  AS4837  China, ChinaUnicom
 9  219.158.98.42  195.14 ms  AS4837  China, ChinaUnicom
10  119.6.197.174  202.23 ms  AS4837  China, Sichuan, Chengdu, ChinaUnicom
11  119.7.220.226  190.40 ms  AS4837  China, Sichuan, Chengdu, ChinaUnicom
12  119.6.6.6  187.07 ms  AS4837  China, Sichuan, Chengdu, ChinaUnicom

----------------------------------------------------------------------
上海移动
traceroute to 120.204.197.126 (120.204.197.126), 30 hops max, 32 byte packets
 1  10.4.41.1  0.23 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  0.54 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34.static.quadranet.com (96.44.175.34)  0.41 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  223.119.64.245  1.05 ms  AS58453  China, Hong Kong, ChinaMobile
 5  223.120.6.17  1.01 ms  AS58453  China, ChinaMobile
 6  223.120.13.46  181.43 ms  AS58453  China, ChinaMobile
 7  221.183.55.26  182.75 ms  AS9808  China, ChinaMobile
 8  221.176.22.205  182.47 ms  AS9808  China, ChinaMobile
 9  221.183.23.37  185.96 ms  AS9808  China, ChinaMobile
10  221.183.62.214  177.89 ms  AS9808  China, ChinaMobile
11  117.143.13.202  186.53 ms  AS24400  China, Shanghai, ChinaMobile
12  120.204.194.14  180.13 ms  AS24400  China, Shanghai, ChinaMobile
13  120.204.197.126  178.30 ms  AS24400  China, Shanghai, ChinaMobile

----------------------------------------------------------------------
成都移动
traceroute to 183.221.253.100 (183.221.253.100), 30 hops max, 32 byte packets
 1  10.4.41.1  0.26 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  0.67 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.34.static.quadranet.com (96.44.175.34)  0.40 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  223.119.64.245  1.15 ms  AS58453  China, Hong Kong, ChinaMobile
 5  223.120.6.17  0.84 ms  AS58453  China, ChinaMobile
 6  223.120.6.86  3.82 ms  AS58453  China, ChinaMobile
 7  221.183.30.193  151.13 ms  AS9808  China, ChinaMobile
 8  221.183.52.85  155.33 ms  AS9808  China, ChinaMobile
 9  221.183.68.142  262.94 ms  AS9808  China, ChinaMobile
10  221.176.20.126  183.17 ms  AS9808  China, ChinaMobile
11  111.24.8.58  183.16 ms  AS9808  China, ChinaMobile
12  183.221.32.30  182.11 ms  AS9808  China, Sichuan, Chengdu, ChinaMobile
13  223.87.85.54  182.19 ms  AS9808  China, Sichuan, Chengdu, ChinaMobile
14  183.221.253.100  183.63 ms  AS9808  China, Sichuan, Chengdu, ChinaMobile

----------------------------------------------------------------------
成都教育网
traceroute to 202.112.14.151 (202.112.14.151), 30 hops max, 32 byte packets
 1  10.4.41.1  0.22 ms  *  LAN Address
 2  66.212.28.1.static.quadranet.com (66.212.28.1)  0.84 ms  AS8100  United States, California, Los Angeles, quadranet.com
 3  96.44.175.32.static.quadranet.com (96.44.175.32)  0.32 ms  AS8100  United States, California, Los Angeles, quadranet.com
 4  218.30.48.145  1.02 ms  AS4134  United States, California, Los Angeles, ChinaTelecom
 5  59.43.246.237  127.61 ms  *  China, ChinaTelecom
 6  59.43.247.57  128.24 ms  *  China, ChinaTelecom
 7  *
 8  59.43.80.14  131.44 ms  *  China, ChinaTelecom
 9  202.97.46.70  130.37 ms  AS4134  China, ChinaTelecom
10  *
11  101.4.118.114  130.48 ms  AS4538  China, CHINAEDU
12  101.4.112.41  136.43 ms  AS4538  China, CHINAEDU
13  101.4.117.25  141.66 ms  AS4538  China, CHINAEDU
14  *
15  101.4.112.29  171.36 ms  AS4538  China, CHINAEDU
16  101.4.117.53  169.36 ms  AS4538  China, CHINAEDU
17  *
18  *
19  202.115.254.238  169.23 ms  AS4538  China, Sichuan, Chengdu, CHINAEDU
20  *
21  *
22  202.112.14.151  167.94 ms  AS24355  China, Sichuan, Chengdu, CHINAEDU

20、一键测试四网回程脚本

测试服务器到我们指定节点 IP 的路由回程,或者脚本自带的四个节点回程,包括电信、联通、移动、教育网四网。

wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh bash testrace.sh

 

21、LemonBench

LemonBench 工具 (别名 LBench、柠檬 Bench),是一款针对 Linux 服务器设计的服务器性能测试工具。通过综合测试,可以快速评估服务器的综合性能,为使用者提供服务器硬件配置信息。

#LemonBench 国内版:curl -fsL https://ilemonra.in/LemonBench | sudo bash -s fast
#LemonBench 国际版:curl -fsL https://ilemonra.in/LemonBenchIntl | sudo bash -s fast

UnixBench.sh

秋水逸冰大佬的作品,UnixBench 是一个类 unix 系(Unix,BSD,Linux)统下的性能测试工具,一个开源工具,被广泛用与测试 Linux 系统主机的性能。Unixbench 的主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C 库等系统基准性能提供测试数据。

特点

  • 自动安装 UnixBench 和测试脚本
  • 系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C 库等系统基准性能

使用

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

服务器 /VPS 一键 shell 脚本大全

22、内存测试

Memtester 是一个检测 VPS 真实可分配内存的小工具,适用于检测 VPS 超售情况。本程序检测的可分配内存指的是用户使用时最大能占用的内存量。

使用

Github 地址:https://github.com/FunctionClub/Memtester

运行命令:

#CentOS/RHEL 系统
yum install wget -y
yum groupinstall "Development Tools" -y
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

#Ubuntu/Debian 系统
apt-get update
apt-get install wget build-essential -y
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

#脚本备份
https://www.moerats.com/usr/shell/memtester.cpp

在进程被杀死前可以测出当时最大的内存占用。

服务器 /VPS 一键 shell 脚本大全

收集于网络

正文完
 0
水东柳
版权声明:本站原创文章,由 水东柳 于2019-03-29发表,共计15064字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)