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 / 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