Giter Site home page Giter Site logo

ct8socks's Introduction

ct8socks

由于很多人反应pm2造成资源占用高,可能是导致账号被BAN的原因,所以这里极其不推荐任何人使用这个脚本,以免被BAN,并且尽早卸载ct8上的pm2!!!

ct8创建socks5的一键脚本

2024/7/28 手滑脚本里有个地方少打了个“5”,现在加上去了。有问题的再覆盖安装一次。

运行前提:你必须先要登录CT8的面板,去允许自定义程序和开启一个TCP端口。

用法:

  1. 直接 wget https://github.com/Neomanbeta/ct8socks/raw/main/ct8socks.sh && chmod +x ct8socks.sh && ./ct8socks.sh 然后你就可以跳过2和3,直接看4了。

  2. 或者ssh登录你的ct8服务器,输入nano ct8socks.sh,然后把ct8socks.sh里面所有的内容黏贴进去,保存退出。或者用winscp等任何支持sshftp的软件直接把ct8socks.sh传上去。

  3. 给脚本赋予运行权限chmod +x ct8socks.sh

  4. 运行脚本./ct8socks.sh

  5. 根据脚本的提示信息进行操作,中途可能需要你停止脚本重连ssh(为了让pm2生效),这里没有条件过多测试,反正提示你成功安装pm2了,接下来出错不能继续了,你就断开ssh再重新连接,按照3的命令再重新运行脚本。

  6. 里面需要你输入的只有3个地方,socks5的端口,socks5的用户名,socks5的密码,然后等待安装完成。

  7. 进行保活,下载仓库中的checksocks5.sh放到/domains/用户名小写.ct8.pl/socks5/目录下,或者自己手动进入到这个目录nano checksocks5.sh,把checksocks5.sh里面的所有内容黏贴进去保存并退出,这个脚本必须和socks5.js同目录,否则会判断失败。

  8. 赋予checksocks5.sh运行权限chmod +x checksocks5.sh

说明:

这个脚本会给你安装pm2然后用pm2管理并运行一个socks5代理。

你可以在socks5.js所在目录下运行pm2 status来查看代理的运行状态,或者用pm2 stop socks_proxy来停止代理服务。

在成功运行并启动socks5代理以后,脚本最后会提示“代理工作正常,脚本结束”,然后你需要用crontab来给代理保活

ssh连接后输入crontab -e,然后把这段里面的两处中文改成对应的你自己的信息,再黏贴进去(这是一分钟执行一次,自己改成需要的时长)

* * * * * /home/用户名/domains/用户名小写.ct8.pl/socks5/checksocks5.sh > /dev/null 2>&1

提醒一下,无任何售后服务,脚本也不会再更新,因为CT8已经把我账号BAN了,所以其实这个脚本我并没有完全修改完,你们想用的就用吧。

ct8socks's People

Contributors

neomanbeta avatar

Stargazers

 avatar  avatar  avatar Linqh avatar  avatar  avatar  avatar Melin avatar  avatar  avatar CMLiussss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.