linux脚本软件集合
前言
“一键脚本” 将繁琐的 Linux 操作命令集中打包起来自动运行,用户不需要再一条条输入指令、修改配置,十分方便。
当我们经常使用 VPS 部署环境时,可以省下很多时间。而对于小白用户,哪怕什么都不懂也可以照葫芦画瓢般快速安装所需服务。
本文总结下我们 VPS 常用的 Linux 一键脚本,可以收藏起来方便使用。
测试硬件水平和路由情况:LemonBench.sh (https://t.me/NewlearnerChannel/11)
测试本地实际速度:Superspeed.sh (https://t.me/NewlearnerChannel/682)
? 此外还有一些大家耳熟能详的测试项目和脚本:
ZBench:又一个Linux VPS测评脚本 (https://github.com/FunctionClub/ZBench)(IO、速度、ping)
Benchmark / GeekBench (https://linuxconfig.org/how-to-benchmark-your-linux-system)(硬件性能测试)
nench:VPS benchmark script (https://github.com/n-st/nench)(硬件性能测试)
BestTrace (https://www.ipip.net/product/client.html)(路由测试)
MyTraceRoute 即 MTR(路由测试)
wget -qO- bench.sh | bash(IO、速度)
ipip.net / ip.sb(查询 ip 来源、MTR 等)
Linux一键脚本 合集
网络优化加速
Google BBR
谷歌开源免费的 TCP BBR 拥塞控制算法。
1 | wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh |
显示 “Press any key to start…” 按回车确认。
如 回车后会出现一列内核版本让我们选择,可输入序号 61 并回车开始安装。(若无选项直接跳过也正常)
安装完后,按提示重启 VPS,输入 Y 回车重启。稍候 1min 等待重启完成,再重新连接 Xshell。
重启后输入 lsmod | grep bbr
,出现 tcp_bbr 即说明 BBR 已经启动。
来源: 一键安装最新内核并开启 BBR 脚本
锐速 ServerSpeeder
来自 91yun 的和谐版,自动修改配置文件,安好即用,不支持 Openvz。
1 | # 安装 |
内核完全匹配的话会自动安装;不匹配则会提示选择,手动选择最接近的内核尝试;无法安装自动退出。
来源: 锐速linux一键自动安装包
Linux网络优化加速一键脚本
1 | wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/tcp/tcp.sh“; chmod +x tcp.sh;sudo bash ./tcp.sh |
安全
防DDos脚本
linux系统防止/减轻DDOS攻击脚本(D)DoS Deflate
2019年最佳Linux杀毒软件:ClamAV,Comodo,Armadito,ClamTK的介绍
VPS 综合测试
bench.sh
测试各种系统信息、IPv4/IPv6 国外节点下载测速、IO 等 服务器 信息。
1 | wget -qO- bench.sh | bash |
来源: 一键测试脚本bench.sh
SuperBench.sh
测试国外主机到国内不同地区的上传/下载速度,可以手动选择运营商、地区、本地或全面测速。
1 | wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh && chmod +x superspeed.sh && ./superspeed.sh |
来源: SuperSpeed.sh 一键测试服务器到国内的速度
SuperBench.sh
VPS 的基本参数信息和 IO、到国内连接速度测试。
1 | wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash |
来源: SuperBench.sh 一键测试服务器的基本参数
ZBench
作者整合了上面的 Bench.sh 和 SuperSpeed.sh 两个脚本,加入了 Ping 和路由追踪测试,测试完成后会在 /root/
下生成 report.html 测试报告文件。
1 | # 中文版 |
来源: ZBench 又一个Linux VPS测评脚本
管理面板
国内外VPS主机管理面板和一键安装脚本
国内版
-http://lnmp.org/ (用的人很多,适应性很强)
https://oneinstack.com/ (用户也很多,博主一直使用这个)
-http://teddysun.com/lamp (很好用的LAMP一键包) -http://teddysun.com/lamp-yum (适合小内存≥64M)http://bbs.aliyun.com/read/151729.html (阿里云论坛看到的)
http://blog.linuxeye.com/31.html (多种配置,软件较新)
http://lnmpp.net/ (支持postgresql,支持ARM)
http://www.hhvmc.com/thread-17-1-1.html (有hhvm的一键包)
http://shuang.ca/llnmp/ http://llsmp.cn/(有LiteSpeed的一键包)https://www.lxconfig.com/thread-69-1-1.html (有openresty的一键包)
http://blog.7qy.com/html/1575.html (有cherokee的一键包)
http://lamp.phpstudy.net/ (有Lighttpd的一键包)
http://www.upupw.net/ (Windows平台环境搭建)
https://www.appnode.com (免费版不支持面板)
http://www.ltmp.cc/ (LTMP支持CentOS/RadHat)
http://bet.xrbk.top/ (BET面板 支持CentOS)
国外版http://centminmod.com/ (据说很适合wordpress)
https://vpssim.com/ (很强大的一键包)
http://tuxlite.com/ (适用于Debian系列)
https://github.com/Xeoncross/lowendscript (lowendscript演变来的)
https://github.com/alexandreteles/monkeyServer(Monkey Web Server轻量级的web服务器)
No related posts.Ajenti:Linux和BSD控制面板。官网
管理面板
国内版
宝塔最新的免费面板:http://www.bt.cn/
AMH – 4.2版免费:http://amh.sh/
WDCP 老牌免费面板:http://www.wdlinux.cn/bbs/(近来爆出严重安全漏洞)
Kangle老牌免费面板:http://www.kanglesoft.com/
自己的路 – 支持freeBSD:http://www.zijidelu.org/
国外版
VestaCP:http://vestacp.com/ (比较推荐的面板,自带中文)
Kloxo-MR:https://github.com/mustafaramadhan/kloxo/ (7.0真的很强大,很好看,很实用,有中文包)
Webmin/Virtualmin:http://www.webmin.com/virtualmin.html (很稳定,很安全,自带中文)
Ispconfig:https://github.com/dclardy64/ISPConfig-3-Debian-Installer (官网没看懂这是一键包,有中文包)
i-MSCP:http://i-mscp.net/ (简单易用,自带中文)
EasySCP:http://www.easyscp.net/ (和i-MSCP一样来自Ispconfig,自带中文)
Ajenti:http://ajenti.org/ (轻量级,类似Webmin,自带中文)
zPanel(sentora):http://www.zpanelcp.com/ http://www.sentora.org/(支持win,有中文包)
centos webpanel:http://centos-webpanel.com/ (据说比较有发展前途)
Froxlor:http://www.froxlor.org/ (很轻量的,适应各种环境)
AlternC:https://alternc.org/ (简单)
Easy Hosting Control Panel:http://ehcp.net/ (还不错的面板,有第三方汉化包)
CyberPanel面板:http://docs.cyberpanel.net/doku.php (目前只支持Centos 7.x)
宝塔英文版?http://www.aapanel.com
runcloud.io面板:https://runcloud.io (有免费版和付费版)
froxlor面板:https://www.froxlor.org/ (面板没有汉化)
AppNode
1 | bash -c "$(curl -sS http://dl.appnode.com/install.sh)" |
AMH
amh
WDCP
Xampp
LuManager
VPSMate
宝塔
Ajenti:Linux和BSD控制面板。
Feathur:VPS供应和管理软件。
ISPConfig:Linux主机控制面板。
VestaCP:用于Linux和Nginx的主机面板。
Virtualmin:基于webmin的Linux控制面板。
ZPanel:Linux BSD和Windows控制面板。
可视化 Linux 服务器管理面板,支持环境配置、应用服务安装、安全管理、文件管理等。
免费版基本功能都够用,至于哪个更好不好评价,都是目前比较流行的面板,选择哪个看个人喜好了。
AMH面板
4.2 版本免费,5+ 个人版本 6元/月。
1 | # 4.2 免费版 |
来源: AMH – 国内领先的云主机面板 – amh.sh
宝塔面板
免费,更新频率较高。
1 | # CentOS |
来源: 宝塔面板 – 简单好用的Linux/Windows服务器管理面板
AppNode
免费版只支持建立三个网站。
1 | bash -c "$(curl -sS http://dl.appnode.com/install.sh)" |
来源: AppNode – Linux服务器集群管理面板
Vesta Control Panel
免费,售后技术支持收费。
1 | curl -O http://vestacp.com/pub/vst-install.sh |
来源: Vesta Control Panel
网站环境
两个很有名的网站环境一键安装包,一键安装 Nginx 、 Mysql 、 PHP 、 Apache 、Tomcat……等。纯命令行安装和管理,无可视化操作面板。
LNMP一键安装包
来源: LNMP一键安装包
1 | wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp |
自动安装(无人值守): LNMP一键安装包无人值守命令生成器
OneinStack
来源: OneinStack – 一键PHP/JAVA安装工具
安装依赖工具
1 | # CentOS/Redhat |
安装脚本
1 | wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz |
自动安装(无人值守): 自动安装 – OneinStack
工具
LACY一键搭建Aria2实现离线下载
Linux环境下一键安装Aria2 + Caddy + YAAW,可实现离线下载、文件管理、在线播放等功能。
1 | #Centos用户 |
安装说明:Linux一键安装Aria2 + YAAW实现离线下载
帮助文档:http://doc.xiaoz.me/lacy/473927
源码:https://github.com/helloxz/aria2
CentOS 7一键安装Seafile搭建私有网盘
Seafile 是一款开源企业云盘,使用Python开发,Seafile非常稳定、安全,搭建私有云的不二之选。
1 | yum -y install wget |
安装说明:CentOS 7一键安装Seafile搭建私有云存储
源码:https://github.com/helloxz/seafile
CentOS一键安装Resilio Sync脚本
Resilio Sync是一种依赖于BitTorrent协议的专用文件共享系统,原为BitTorrent Sync,可用于文件共享、同步等。
1 | #安装必要的软件包 |
安装说明:CentOS一键安装Resilio Sync脚本
源码:https://github.com/helloxz/Resilio-Sync
OneinStack
搭建网站环境用它就够了,一键安装Apache、Nginx、Mysql、Tomcat…等,比如流行的LNMP环境。注意:该脚本不支持WEB面板,若对Linux不是很熟悉的朋友建议使用宝塔/AMH等替代。
1 | yum -y install wget screen curl python #for CentOS/Redhat |
官网:https://oneinstack.com/
Shadowsocks Python版一键安装脚本
秋水逸冰大神的脚本,至于他能干嘛,不可言喻,你懂的。
1 | wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh |
原文地址:https://teddysun.com/444.html
一键升级内核并开启Google BBR
Google 开源了的 TCP BBR 拥塞控制算法,有效提高TCP传输速度,搭配Shadowsocks使用效果更佳,你的邻居把出口带宽占满了,你不想点办法还能上网?
1 | wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh |
原文地址:https://teddysun.com/342.html
一键测试脚本bench.sh
这个依然是秋水逸冰的作品,他的脚本都非常实用。bench.sh
可以方便的查看CPU/内存等信息,还可以对VPS磁盘I/O,下载速度等进行测试在,做VPS评测必备。
1 | #方法一 |
待整理
3.Ubuntu一键配置脚本
https://blog.csdn.net/rovast/article/details/49686565
4.Linux 环境下的 hosts 一键部署脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/hosts/hosts.sh“; chmod +x hosts.sh;sudo bash ./hosts.sh
5.一键安装ghost轻博客
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/ghost/ghost.sh“; chmod +x ghost.sh;sudo bash ./ghost.sh
6.Linux/Ubuntu一键测试性能脚本bench.sh
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/bench/bench.sh“; chmod +x bench.sh;sudo bash ./bench.sh
7.Linux一键测试性能脚本UnixBench
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/unixbench/unixbench.sh“; chmod +x unixbench.sh;sudo bash ./unixbench.sh
8.ftp上传一键脚本
https://teddysun.com/484.html
9.一键安装kms服务脚本
https://teddysun.com/530.html
10.一键安装最新内核并开启 BBR 脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/bbr/bbr.sh“; chmod +x bbr.sh;sudo bash ./bbr.sh
重启之后输入下面的命令如果有 BBR 说明 BBR 加速开启成功
sysctl net.ipv4.tcp_available_congestion_control
11.L2TP/IPSec一键安装脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/L2TP/l2tp.sh“; chmod +x l2tp.sh;sudo bash ./l2tp.sh
https://down.vpsmm.com/shell/l2tp.sh
一键安装l2tp的v7n服务器端,输入3个指令即可
12.Ubuntu/Debian/Centos一键安装FTP脚本
http://vpsxyz.com/archives/21
13.网速测试
主要包括国内的一些节点进行专项测试,电信、联通、移动
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/superspeed/superspeed.sh“;chmod +x superspeed.sh;sudo bash ./superspeed.sh
14.html5网速测试
https://down.vpsmm.com/php/speedtest.zip
需要php环境,下载后解压即可运行,无须安装
16.锐速一键包
一键安装锐速解锁全功能版,不支持openvz架构,来自91yun
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/serverspeeder/serverspeeder.sh“;chmod +x serverspeeder.sh;sudo bash ./serverspeeder.sh
另一位爱好者开发的锐速一键安装脚本,开发:https://github.com/0oVicero0/serverSpeeser_Install
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/serverspeeder/serverspeeder_appex.sh“;chmod +x serverspeeder_appex.sh;sudo bash ./serverspeeder_appex.sh
17.FS/finalspeed一键包
一键安装finalspeed功能,支持全系架构
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/finalspeed/finalspeed.sh“;chmod +x finalspeed.sh;sudo bash ./finalspeed.sh
18.mysql一键备份脚本
每天自动备份MYSQL及打包网站目录
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/AutuBackupToFtp/AutoBackupToFtp.sh“;chmod +x AutoBackupToFtp.sh;sudo bash ./AutoBackupToFtp.sh
19.transfer.sh 中文一键安装脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/transfer/transfer.sh“;chmod +x transfer.sh;sudo bash ./transfer.sh
20.腾讯云CVM服务中文一键移除脚本
该脚本可以一键移除您腾讯云CVM内部所预装的阿里云后台服务。
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/service_removal_tencent/service_removal_tencent.sh“;chmod +x service_removal_tencent.sh;sudo bash ./service_removal_tencent.sh
21.阿里云服务中文一键移除脚本
该脚本可以一键移除您阿里云ECS内部所预装的阿里云后台服务。
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/service_removal_ali/service_removal_ali.sh“;chmod +x service_removal_ali.sh;sudo bash ./service_removal_ali.sh
22.WordPress + LNMP 中文一键安装脚本
HTTP版
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/wp_lnmp/wp_lnmp.sh“;chmod +x wp_lnmp.sh;sudo bash ./wp_lnmp.sh
HTTPS版(带自动跳转HTTPS、自动申请Let’s Encrypt SSL证书)
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/wp_lnmp_le/wp_lnmp_le.sh“;chmod +x wp_lnmp_le.sh;sudo bash ./wp_lnmp_le.sh
23.WordPress + SQLite 一键安装脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/wp_sqlite/wp_sqlite.sh“;chmod +x wp_sqlite.sh;sudo bash ./wp_sqlite.sh
24.Debian & Ubuntu 中文一键TCP网络优化脚本(集成锐速、BBR,自动更换内核)
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/net_acc/net_acc.sh“;chmod +x net_acc.sh;sudo bash ./net_acc.sh
25.Debian(Ubuntu)网络安装/重装系统一键脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/DebianNET/DebianNET.sh“;chmod +x DebianNET.sh;sudo bash ./DebianNET.sh
26.Ubuntu一键配置脚本
https://blog.csdn.net/rovast/article/details/49686565
28.linux shell之简单一键优化脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/ubuntu_init/init.sh“;chmod +x init.sh;sudo bash ./init.sh
使用方法如下:
http://blog.51cto.com/chocolee/1424587
29.锐速解锁版Linux一键安装脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/appex/appex.sh“;chmod +x appex.sh;sudo bash ./appex.sh
使用方法如下:
https://xpsss.com/859.html
30.Linux下一键http配置脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/httpauto/httpauto.sh“;chmod +x httpauto.sh;sudo bash ./httpauto.sh
使用方法如下:
http://www.pengqi.club/blog/264.html
31.Linux一键评测跑分脚本——ZBench
英文版
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/ZBench/ZBench.sh“;chmod +x ZBench.sh;sudo bash ./ZBench.sh
中文版
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/ZBench/ZBench-CN.sh“;chmod +x ZBench-CN.sh;sudo bash ./ZBench-CN.sh
32.一键优化centos脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/init_centos/centos.sh“;chmod +x centos.sh;sudo bash ./centos.sh
33.linux shell之简单一键优化脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/init_linux/linux.sh“;chmod +x linux.sh;sudo bash ./linux.sh
34.shell脚本一键安装redis
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/redis/redis.sh“;chmod +x redis.sh;sudo bash ./redis.sh
36.Linux下实现SNMP一键安装的Shell脚本linux shell
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/snmp/snmp.sh“;chmod +x snmp.sh;sudo bash ./snmp.sh
使用方法
http://www.yuedudg.cn/script/article/2150001.html
37.安装完Ubuntu后通过shell脚本一键安装软件
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/ubuntu_software/software.sh“;chmod +x software.sh;sudo bash ./software.sh
38.一个用于批量下载网络图片的Shell脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/download/image1.sh“;chmod +x image1.sh;sudo bash ./image1.sh
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/download/image2.sh“;chmod +x image2.sh;sudo bash ./image2.sh
39.Ubuntu一键安装docker的脚本
wget -N –no-check-certificate “https://raw.githubusercontent.com/WhosYourFathe/UsefulScripts/master/docker/docker.sh“;chmod +x docker.sh;sudo bash ./docker.sh
评论