Linux服务器各类应用一键配置脚本汇总

随着VPS等主机产品的流行,现在想拥有一台自己的网上服务器并非难事。除了行业竞争与技术发展带来的平民价格外,也有不少一键式懒人配置脚本可用,使得接触使用门槛并没有想象中高。即使你不熟悉Linux系统的具体用法,只需掌握登录连接就可用简单一两句命令,实现无人值守快速部署安装。为了方便大家查找和丰富服务器的玩法,本页将持续更新收集各类型服务应用的一键配置脚本。如果你有其它好用脚本要分享,欢迎留言补充。

提示:下面脚本大多兼容CentOS/Ubuntu/Debian主流版本使用,其它相对小众Linux发行版系统可能用不了,具体可搜索溯源脚本作者发布页介绍。

服务器性能测试脚本

ZBench

一个主要测试服务器网络性能的脚本,包含海内外多节点测速,路由回程链路,线路延迟,系统概要信息,硬盘I/O读写测试,并能生成测试结果网页。

wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

Bench

早期被广泛使用的测速脚本,功能和ZBench差不多。除了没路由测试和内地测速点外,其它基本一样。可以视为简单版,没有多余功能。

wget -qO- https://raw.githubusercontent.com/teddysun/across/master/bench.sh | bash

SuperBench

Bench的升级版,增加了内地测速点和配色方案,并自动生成paste.ubuntu.com结果外链。

wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

SpeedTest

这个是笔者修改自SuperBench的自用版本,添加了一批内地测速点。由于平时经常用,大概会长期更新测试点可用。

wget -qO- https://raw.githubusercontent.com/vmxyqf/miscellaneous/master/speedtest.sh | bash

UnixBench

经典的类Unix系统基准测试工具,主要检测系统处理任务的性能表现,常用于评估服务器硬件性能跑分。

wget -qO- https://raw.githubusercontent.com/teddysun/across/master/unixbench.sh | bash

speedtest-cli

speedtest.net测速网站提供测速脚本(需安装有Python组件方能使用),运行后默认匹配服务器附近节点进行测速,也可自定义节点测试

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli

BestTrace

纯粹的回程路由测试工具(往程路由可用此在线工具测试),若为32 Bit系统,请更换下面命令中besttrace为besttrace32。

wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
./besttrace -q 1 目标IP

SmokePing

一个服务器网络监控程序,这个脚本可以一键安装SmokePing,安装后需手动改下配置文件才能用,详细见此说明

wget -N --no-check-certificate https://raw.githubusercontent.com/ILLKX/smokeping-onekey/master/smokeping.sh && bash smokeping.sh

Linux系统常用设置项

SuperUpdate

为系统更换其它更快软件安装源,默认更换至阿里云软件源(Debian默认Fastly源)。

wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superupdate.sh | bash

teddysun-bbr

安装最新Linux内核并开启TCP BBR模块,使用可提升网络传输效率,对网速有明显改善。之前本站也介绍过手动设置方法

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

Linux-NetSpeed

一键安装 & 切换锐速,BBR,BBR 魔改版,自动根据 VPS 优化内核参数。支持 Centos 6+ / Debian 7+ / Ubuntu 14+(BBR魔改版不支持 Debian 8)。

wget "https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

网络应用类

Cloud Torrent

简单易部署的服务器BT下载程序,自带资源搜索功能,支持文件在线预览。一键安装命令:

curl https://i.jpillora.com/cloud-torrent! | bash

安装后的程序运行命令如下,之后用浏览器访问服务器IP+设置端口登录使用。

/usr/local/bin/cloud-torrent --host 0.0.0.0 --port 8080 --auth "user:password" --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log

若要设置开机启动,请查看这篇文章介绍

影音媒体类

Nginx反代m3u8

这个还没有做一键脚本,玩电视源的可能有类似需求,可以解决原始源速度慢问题,顺便贴一下方法链接

建站相关类

LNMP

快速安装Nginx/MySQL/PHP生产环境,组件支持多版本选择,支持生成LetseEcrypt证书。安装时间较长,建议开个Screen再安装。

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环境,可以参考这个教程

LAMP

经典建站环境,Apache/MySQL/PHP环境安装,包括多项可选组件/脚本。需具备root权限,安裝不得低于512内存,5G以上可用空间。

# 安装依赖组件
yum -y install wget screen git      // for CentOS
apt-get -y install wget screen git  // for Debian/Ubuntu

# git clone并赋予脚本权限
git clone https://github.com/teddysun/lamp.git
cd lamp
chmod +x *.sh

# 开始安装
screen -S lamp
./lamp.sh

安装后使用方法请查看项目页面说明。若要手动搭建LAMP环境,可以参考这个教程

更多待添加…

评论列表

  1. #1

    Hi, very nice website, cheers!
    ——————————————————
    Need cheap and reliable hosting? Our shared plans start at $10 for an year and VPS plans for $6/Mo.
    ——————————————————
    Check here: https://www.reliable-webhosting.com/

  2. #2

    long term use of acyclovir https://www.herpessymptomsinmen.org/productacyclovir/

  3. #3

    where can i purchase careprost https://carepro1st.com/

  4. #4

    viagra wholesale prices https://buszcentrum.com/

  5. #5

    peak amoxicillin working time https://amoxycillin1st.com/

  6. #6

    max dosage of cialis http://www.lm360.us/

  7. #7

    ivermectin dosage for demodex mange https://ivermectin.mlsmalta.com/

  8. #8

    single dapoxetine pills for sale https://salemeds24.wixsite.com/dapoxetine

  9. #9

    vidalista 5 mg tablet images https://vidalista.mlsmalta.com/

  10. #10

    silagramnttrust https://silagra.buszcentrum.com/

  11. #11

    treatment for ivermectin toxicity https://ivermectin.webbfenix.com/

  12. #12

    sildenafil 25 mg coupon http://droga5.net/

  13. #13

    hydroxychloroquine and zithromax https://hydroxychloroquine.mlsmalta.com/

  14. #14

    why is hydroxychloroquine banned https://hydroxychloroquine.webbfenix.com/

  15. #15

    nolvadex pct https://tamoxifen.mrdgeography.com/

  16. #16

    all natural suhagra supplement https://suhagra.buszcentrum.com/

  17. #17

    aurogra dosage for erectile dysfunction https://aurogra.buszcentrum.com/

  18. #18

    ivermectin solution for birds https://ivermectin1st.com/

  19. #19

    eli lilly cialis coupon https://wisig.org/

  20. #20

    does vidalista lower blood pressure https://vidalista40mg.mlsmalta.com/

  21. #21

    amstyles.com https://amstyles.com/

  22. #22

    cialis with dapoxetine testimonials https://ddapoxetine.com/

  23. #23

    tadalafil 40 mg daily https://tadalafili.com/

  24. #24

    best online international pharmacies https://edmeds.buszcentrum.com/

  25. #25

    best online international pharmacies https://medpills.bee-rich.com/

  26. #26

    plaquenil side effects weight gain https://hydroxychloroquinee.com/

  27. #27

    fastest viagra delivery https://viaplz.com/

  28. #28

    cialis tablets for sale australia https://tadalafileo.online/

  29. #29

    hydroxychloroquine and weight loss https://hydroxychloroquine.grassfed.us/

  30. #30

    hydroxychloroquine and weight loss https://hydroxychloroquine.lm360.us/

  31. #31

    There is noticeably a lot to identify about this. I think you made certain good points in features also.

    http://www.vreyrolinomit.com/

  32. #32

    what is the standard dosage for cenforce http://cavalrymenforromney.com/

  33. #33

    cialis generic best price https://tadalafil.cleckleyfloors.com/

  34. #34

    cialis for sale http://ciaalis2u.com/

  35. #35

    difference viagra cialis levitra https://cialis.stdstory.com/

  36. #36

    difference viagra cialis levitra https://cialis.mlsmalta.com/

  37. #37

    order hydroxychloroquine http://hydroxychloroquined.online/

  38. #38

    generic viagra without subscription http://viaagra1.com/

  39. #39

    buy tadalafil online https://atadalafil.online/

  40. #40

    viagra without a doctor prescription http://viiagra.co/

  41. #41

    I will right away clutch your rss as I can’t to find your email
    subscription link or e-newsletter service. Do you have any?
    Kindly let me realize so that I may subscribe. Thanks. http://cleckleyfloors.com/viagra.pills

  42. #42

    Ahaa, its fastidious conversation regarding this
    piece of writing here at this weblog, I have read all that, so now me also commenting at this place. https://cialis.confrancisyalgomas.com/tadalafil

  43. #43

    Link exchange is nothing else however it is only placing the other person’s website link on your page at appropriate place and other person will also do same in support of
    you. https://hydroxychloroquineg.grassfed.us/

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。