Skip to content

Instantly share code, notes, and snippets.

@ComeBey
ComeBey / ssr多用户脚本搭建步骤
Last active November 6, 2019 02:00
ssr多用户脚本搭建步骤
第一步sudo -i
第二步.ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
第二步.(1).centos 系统安装 Curl 方法: yum update -y && yum install curl -y (2).yum install wget 下载wget工具
第三步.wget -N --no-check-certificate https://raw.githubusercontent.com/ComeBey/more-user-ssr/master/hasan.sh && chmod +x hasan.sh && bash hasan.sh
第四步:bash hasan.sh
@ComeBey
ComeBey / bbr.txt
Last active January 31, 2024 00:45
centos7 bbr
1、yum系统更新 yum update
---------------------
2、查看系统版本
cat /etc/redhat-release
输出如下则表示已升级到7.5或者更高版本
CentOS Linux release 7.5.1804 (Core)
---------------------
3、安装elrepo并升级内核
@ComeBey
ComeBey / ssr架设
Last active January 31, 2024 00:45
ssr脚本架设
1. sudo -i
2. yum update 升级系统
4. curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" 下载pip
5. python get-pip.py 安装pip
6. pip install shadowsocks 安装ss
@ComeBey
ComeBey / CentOS 7
Created March 25, 2019 07:21
Brook官方脚本搭建
1. 输入sudo -i 进来root权限, 可自行选择升级内核, yum update 升级内核
2. yum install wget 下载wget工具
3. wget https://github.com/txthinking/brook/releases/download/v20190205/brook 下载brook服务器版本
4. 输入cp brook /usr/bin 把brook拷贝到bin目录下
5. chmod +x /usr/bin/brook 给予当前路径brook可执行权限
@ComeBey
ComeBey / brook crontab
Last active July 2, 2020 23:08
CentOS7 brook crontab定时重启
一>校准时间同步本地时间
1.date -s "2019-09-21 19:00:38"
2.cp空格 /usr/share/zoneinfo/Asia/Shanghai 空格/etc/localtime
3.(一) yum -y install ntp ntpdate 安装ntpdate工具
(二) ntpdate cn.pool.ntp.org 设置系统时间与网络时间同步
(三) hwclock --systohc 将系统时间写入硬件时间
@ComeBey
ComeBey / v2ray 计划crontab
Last active November 18, 2019 16:19
v2ray定时重启服务crontab
以下同步时间选择其中一种,如果无法同步本地时间请google下(关键字centos7或者centos6或者debian时间同步本地时间等关键字)
方法一.校准时间同步本地时间 date -R 查看vps时间
sudo -i root权限进入
(一) yum -y install ntp ntpdate 安装ntpdate工具
(二) ntpdate cn.pool.ntp.org 设置系统时间与本地网络时间同步
(三) hwclock --systohc 将系统时间写入硬件时间
方法二.校准时间同步本地时间 date -R 查看vps时间
(1)yum install ntp //安装ntp服务
(2)systemctl enable ntpd //开机启动服务
@ComeBey
ComeBey / Debian9 bbr
Last active November 6, 2019 02:02
Debian9 bbr
debian9 复制这条代码安装bbr加速如下:
方法一wget -N --no-check-certificate https://bit.ly/2VWUksq && chmod + hasan.sh && bash hasan.sh
备用代码:wget -N --no-check-certificate https://raw.githubusercontent.com/ComeBey/bbr/master/hasan.sh && chmod + hasan.sh && bash hasan.sh
@ComeBey
ComeBey / HASAN
Created October 31, 2019 06:56
BEST FOR BBR
#!/bin/bash
Green_font="\033[32m" && Yellow_font="\033[33m" && Red_font="\033[31m" && Font_suffix="\033[0m"
Info="${Green_font}[Info]${Font_suffix}"
Error="${Red_font}[Error]${Font_suffix}"
reboot="${Yellow_font}重启${Font_suffix}"
echo -e "${Green_font}
#=======================================
# Project: tcp_nanqinlang general
# Platform: --Debian --KVM
# Branch: --fool
@ComeBey
ComeBey / V2ray+WS+TCP+TLS
Last active March 19, 2022 07:49
V2ray+WS+TCP+TLS配置
centos7系统配置和Debian系统配置 [视频中我讲错了acme.sh脚本所有证书将每60天自动更新一次,大家无需执行第9部操作(如果你非要手动更新随意)]
第一步 V2RAY官方脚本搭建
更新服务器 yum -y update(部分系统提示NO packages marked for update则无需更新)
#设置硬件时钟调整为与本地时钟一致
timedatectl set-local-rtc 1
#设置时区为上海
timedatectl set-timezone Asia/Shanghai
@ComeBey
ComeBey / v2ray官方脚本搭建
Created May 14, 2020 09:55
v2ray官方脚本搭建
1.V2Ray 提供了一个在 Linux 中的自动化安装脚本。这个脚本会自动检测有没有安装过 V2Ray,如果没有,则进行完整的安装和配置;如果之前安装过 V2Ray,则只更新 V2Ray 二进制程序而不更新配置。
以下指令假设已在 su 环境下,如果不是,请先运行 sudo su。
运行下面的指令下载并安装 V2Ray。当 yum 或 apt-get 可用的情况下,此脚本会自动安装 unzip 和 daemon。这两个组件是安装 V2Ray 的必要组件。如果你使用的系统不支持 yum 或 apt-get,请自行安装 unzip 和 daemon
2.(1)debian系统vps时间同步本地时间 (先输入sudo -i在同步时间 必须同步时间切记)
rm -rf /etc/localtime
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
(2)centos7系统vps时间同步本地时间(先输入dudo -i在同步时间 必须同步时间切记)