Giter Site home page Giter Site logo

gtxfury / ss-panel-v3-mod-checkonline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tokyohost/ss-panel-v3-mod-checkonline

0.0 1.0 0.0 11 KB

适用于 ss-panel-v3-mod 面板对应的SSR后端运行监控脚本(检测服务端是否正在运行,在检测到停止运行时主动启动服务端)

Shell 100.00%

ss-panel-v3-mod-checkonline's Introduction

ss-panel-v3-mod-checkonline

适用于 ss-panel-v3-mod 面板对应的SSR后端运行监控脚本(检测服务端是否正在运行,在检测到停止运行时主动启动服务端)【自用】

仅用于Çentos 系统(已在Centos 7.1 中验证)

使用方法:

确保shadowsocks 程序安装在 /root/shadowsocks/ 目录中

第一步: cd /root

wget https://github.com/tokyohost/ss-panel-v3-mod-checkonline/archive/master.zip

下载文件

第二步: unzip master.zip

解压文件

第三步: cd ss-panel-v3-mod-checkonline-master

进入目录

第四步: chmod +x runcheck.sh

    chmod +x check.sh

添加权限

第五步: ./runcheck.sh &

运行程序

第一步-第五步一键脚本(尽量一步一步走):

wget https://github.com/tokyohost/ss-panel-v3-mod-checkonline/archive/master.zip&&unzip master.zip&&cd ss-panel-v3-mod-checkonline-master&&chmod +x runcheck.sh&&chmod +x check.sh&&./runcheck.sh &

第六步: vi /etc/rc.d/rc.local

按下键盘i键,并在文件末尾添加:sh /root/ss-panel-v3-mod-checkonline-master/runcheck.sh &

然后:按下Esc键,输入<:wq>(尖括号内内容)

最后:chmod +x /etc/rc.d/rc.local

添加开机自启

大功告成

最后必要时断开服务器时选择exit命令。

/root/ss-panel-v3-mod-checkonline-master/check.txt 为脚本日志。

常见出错提示:

wget :command not found

解决方法:yum -y install wget

unzip : command not found

解决方法:yum -y install unzip

更多解决方法:www.baidu.com

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.