Git Product home page Git Product logo

openzz's Introduction

openzz

开源中转 服务器端 适用于任意币种任意矿池中转 客户端源码(成品见右侧):https://github.com/SmileZD/openzz_client.git

教程:(无经验可以直接看第8条一键安装脚本)

1、安装nodejs任意版本

2、安装PM2(可选)

3、git获取代码

git clone https://github.com/SmileZD/openzz.git

4、进入项目

cd openzz 

5、修改端口和密钥(9501为旧端口,12345为新端口,密钥同理) sed -i 's/旧数据/新数据/g' index.js

sed -i 's/9501/12345/g' index.js
sed -i 's/3DB8FDF54A9E898FB4F54FAC371ADBB5/AABBCCDDEEFFGG/g' index.js

6、安装依赖包

npm i 

7、通过PM2启动

pm2 start index.js --name openzz

或者使用通用方式启动

nohup node index & 
exit

8、Ubuntu一键安装脚本(请使用root身份)

wget http://qs.weikeji.icu/openzz.sh && bash openzz.sh

如果报错可以手动复制以下代码执行

cd ~
apt-get install wget git -y
#安装nodejs16
wget https://cdn.npmmirror.com/binaries/node/latest-v16.x/node-v16.16.0-linux-x64.tar.xz
tar -xvf node-v16.16.0-linux-x64.tar.xz
cp -r ./node-v16.16.0-linux-x64 /usr/local/
rm -rf ./node-v16.16.0-linux-x64
rm -rf ./node-v16.16.0-linux-x64.tar.xz
ln -s /usr/local/node-v16.16.0-linux-x64/bin/npm /usr/local/bin
ln -s /usr/local/node-v16.16.0-linux-x64/bin/node /usr/local/bin
#安装pm2
npm i pm2 -g
ln -s /usr/local/node-v16.16.0-linux-x64/lib/node_modules/pm2/bin/pm2-runtime /usr/local/bin
ln -s /usr/local/node-v16.16.0-linux-x64/lib/node_modules/pm2/bin/pm2 /usr/local/bin
ln -s /usr/local/node-v16.16.0-linux-x64/lib/node_modules/pm2/bin/pm2-dev /usr/local/bin
ln -s /usr/local/node-v16.16.0-linux-x64/lib/node_modules/pm2/bin/pm2-docker /usr/local/bin
#下载源码
git clone https://github.com/SmileZD/openzz.git
cd openzz
#安装依赖
npm i
#启动
pm2 start index.js --name openzz

关闭命令

pm2 stop openzz

重启服务命令

pm2 restart openzz

设置开机自启

pm2 startup
pm2 save

取消开机自启

pm2 unstartup

9、检测程序是否正常运行

pm2 log openzz

如果不显示任何日志就一切正常;如果显示端口 9501 被占用,则需要修改端口或解决占用;其他报错一般不影响使用

openzz's People

Contributors

smilezd 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.