最新消息
常用安装脚本知识24年3月27日更新
常用安装脚本知识24年3月27日更新
7个月前 38 阅读
  • 首页
  • /
  • 学习
  • /
  • 正文
  • 一、纯ipv6机上warp添加IPV4的脚本
    fscarmen大神脚本【选1安装】:

    wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]

    小破站脚本【 选3. 安装 / 切换 WARP-GO】:

    wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/warp.sh && bash warp.sh

    fscarmen挺不错的,三步曲【可以用】
    1、dns64:

    cp /etc/resolv.conf{,.bak}; echo -e "nameserver 2a00:1098:2b::1\nnameserver 2a01:4f9:c010:3f02::1\nnameserver 2a01:4f8:c2c:123f::1\nnameserver 2a00:1098:2c::1" > /etc/resolv.conf

    2、warp IPv4:

    wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh 4

    3、sba(sing-box + argo):

    bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sba/main/sba.sh)

    甬哥添加IPV4(有奇效):

    bash <(wget -qO- https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh 2> /dev/null)

    二、X-UI脚本及其它相关安装
    【1和2最新独立版本是v0.3.3.14;3和4最新独立版本是0.3.4.4,安装失败时可稍加修改选择独立版本,注意在版本号前加空格】

    1、

    bash <(wget -qO- https://raw.githubusercontent.com/sing-web/x-ui/main/install_CN.sh)

    2、或自己修改版:

    bash <(wget -qO- https://raw.githubusercontent.com/wszx123/x-ui/main/install_CN.sh)

    3、或大神修改最新版:

    bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

    4、或自己修改大神版:

    bash <(curl -Ls https://raw.githubusercontent.com/wszx123/x-ui-FranzKafkaYu/master/install.sh)

    fscarmen大神隧道脚本 【一般用临时隧道,关闭tls的端口,一路回车安装】:

    bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh)

    关闭tls的端口:80、8080、8880、2052、2082、2086、2095
    开启tls的端口:443、8443、2053、2083、2087、2096

    八合一脚本:

    wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

    wget -P /root -N --no-check-certificate "https://www.v2ray-agent.com/v2ray-agent/install.sh" && chmod 700 /root/install.sh && /root/install.sh

    一键安装梭哈脚本:

    curl https://www.baipiao.eu.org/suoha.sh -o suoha.sh && bash suoha.sh

    科技lion官方一建脚本:

    curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

    curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

    x-ui甬哥精简修改版脚本 ,支持reality,xray配置已添加支持socks5-warp与wireguard warp出站分流(支持IPV4与IPV6分流)【纯IPV4/纯IPV6的VPS直接运行一键脚本】

    bash <(wget -qO- https://gitlab.com/rwkgyg/x-ui-yg/raw/main/install.sh 2> /dev/null)

    bash <(curl -Ls https://gitlab.com/rwkgyg/x-ui-yg/raw/main/install.sh)

    以上全版本不行时,可安装下面独立版本

    bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) 0.3.2

    三、HY2协议的一键脚本

    wget -N --no-check-certificate https://raw.githubusercontent.com/Misaka-blog/hysteria-install/main/hy2/hysteria.sh && bash hysteria.sh

    无法获取配置文件时,运行这个命令即可

    chmod 777 /root

    四、哪吒探针部署面板
    1、国外机:

    curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && ./nezha.sh

    2、国内机:

    curl -L https://raw.sevencdn.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && ./nezha.sh

    五、开通SSH登录方法:
    1,必须切换成为root用户:

    sudo -i

    2,先更新软件列表和更新软件:

    sudo apt-get update

    3,先更新软件列表和更新软件:

    sudo apt-get upgrade

    4,安装ssh:

    apt-get install ssh

    5,启动ssh服务:

    sudo /etc/init.d/ssh start

    6,检查是否有ssh环境:

    ps -e | grep ssh

    ubuntu开通root登录SSH权限
    1,使用普通用户登录后切换

    root:sudo -i

    2,创建root管理员密码:

    passwd root

    3,开启root登录:

    sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config

    4,开启密码验证:

    sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config

    5,重启ssh服务:

    service sshd restart

    6,检查是否有ssh环境:

    ps -e | grep ssh

    六、设置root密码:
    1、切入内网登录到目标机器,切换为root账号:

    sudo -i

    2、然后设置密码:

    passwd

    根据提示输入新密码,密码不会被显示,输入完成后直接回车,重复输入回车,即可修改成功。
    3、最后重启服务器:

    reboot

    七、修改root密码并且踢出所有用户
    很多MJJ喜欢参与群内免费服务器的争夺但是苦于每次修改密码都会有其他用户再次修改密码于是这里给出一行命令用于修改root密码和踢出所有有密码修改权限的用户强行中断其会话

    current_tty=$(tty); pts_list=$(who | awk '{print $2}'); for pts in $pts_list; do if [ "$current_tty" != "/dev/$pts" ]; then pkill -9 -t $pts; fi; done; echo 'root:NEW_PASSWD' | chpasswd && sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config && systemctl restart sshd.service; current_tty=$(tty); pts_list=$(who | awk '{print $2}'); for pts in $pts_list; do if [ "$current_tty" != "/dev/$pts" ]; then pkill -9 -t $pts; fi; done

    记得修改命令中的NEW_PASSWD为自己的密码

    八、开启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

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

    九、融合怪命令 【融合怪脚本最好在 /root 路径下执行,避免各种奇奇怪怪的问题】
    交互形式

    curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

    curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

    bash <(wget -qO- bash.spiritlhl.net/ecs)

    无交互形式-参数模式

    curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh 1 0 0

    curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh 1 0 0

    bash ecs.sh 1 0 0

    上述命令默认执行融合怪全体,输入的三个参数数字是对应的选项序号。

    参数1 参数2 参数3对应有交互模式中你依次输入的选项序号,如果有参数没用到留空或者写0即可。
    参数2可传入你本地的IPV4地址,将使用你本地IPV4作为回程路由测试的目标地址。
    本地的IPV4地址可使用 ip.sb ipinfo.io nstool.netease.com cip.cc 之类的网站查询

    IP质量检测
    IP质量检测,含多家数据库查询,含黑名单查询
    含 IPV4 和 IPV6 检测,含ASN和地址查询
    含25端口的邮箱可达性检测,如果某个邮箱可达,则可搭建邮局

    bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/qzcheck.sh)

    bash <(wget -qO- bash.spiritlhl.net/ecs-ipcheck)

    bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/ecs/main/qzcheck.sh)

    三网测速脚本

    bash <(curl -Lso- https://bench.im/hyperspeed)

    三网回程路由测试

    curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

    十、其它
    升级系统 Debian / Ubuntu 命令:

    apt update -y
    apt install curl wget -y

    看磁盘:

    df -h

    查看当前目录下的 文件和文件夹:

    ls

    进入指定文件夹:

    cd 文件夹名称

    一般用vps建站后,网站文件在

    home/web/html/网站名称/

    合集脚本(快捷命令Tool)

    wget -O Tool https://blog.xueli.lol/Script/Tool.sh; mv Tool /usr/local/bin/; cd /usr/local/bin/ && chmod +x Tool && bash Tool

    Debian基本配置命令:

    apt update -y && apt upgrade -y && apt install -y wget curl vim lsof sudo

    SWAP 内存脚本

    wget https://raw.githubusercontent.com/ChellyL/swap_change/main/swap.sh && bash swap.sh

    Docker安裝

    curl -fsSL https://get.docker.com | bash -s docker
    systemctl start docker
    systemctl enable docker

    寶塔面板開心版
    日常命令

    bt

    CentOS7安装命令

    yum install -y wget && wget -O install.sh http://io.bt.sy/install/install_6.0.sh && sh install.sh

    Ubuntu Deepin安装命令

    wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && sudo bash install.sh

    Debian安装命令

    wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && bash install.sh

    極光面板

    bash <(curl -fsSL https://raw.githubusercontent.com/Aurora-Admin-Panel/deploy/main/install.sh)

    融合怪VPS評測

    curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

    以上脚本来自网络,可能有时效性。

    01

    0
    那年今日

    评语 (2)

    取消
    1. 头像
      回复
      123 7个月前 IP数据库路径不正确
      太全了。表情

    2. 头像
      回复
      25263 5个月前 IP数据库路径不正确
      收藏了。

    您是第 23586 位访客