Code Monkey home page Code Monkey logo

ssr_server's Introduction

SSR服务端部署与使用

市面上的SSR服务端版本太多,由于本项目是公司使用,所以需要搭配后台。挑选之下,选用了开源项目SSRSSRPanel

在此,衷心感谢作者:

因为站在巨人的肩膀上才有的此项目,谢谢各位的奉献!

由于本项目是搭配后台使用的,数据存储再数据库,所以本项目无法单独运行(如果你会改配置那就没有什么不可以!)。所以,再使用本项目前,请搭建后台,传送门

后台客户端展示需要先安装后台

client

后台管理员展示需要先安装后台

server

本项目为服务端,使用方法如下:

  1. 首先安装本项目对应的后台传送门
  2. git clone https://github.com/ouhaohan8023/SSR_server.git
  3. cp config.json user-config.json
  4. cp apiconfig.py userapiconfig.py
  5. cp mysql.json usermysql.json
  6. 修改对应的数据库配置参数
  7. 回到根目录,运行python server.py,查看输出信息(为了保证这一步的输出信息比较完整,请提前再后台用随机生成用户功能,生成一些测试用户)

python server.py示例如下:

  1. 运行后会展示账户信息(在后台配置) 账户信息

  2. 使用过程中展示TCP信息 TCP

调试完毕,正式运行

  1. 根目录下运行./run.sh(无日志)
  2. 需要日志的话运行./logrun.sh

常见问题

1.VPS重启以后,经常会出现,后台显示上线,但是客户端连接上以后无法打开网页,并且没有流量。

解决方法:运行systemctl stop firewalld或者systemctl stop iptables.service停止防火墙。

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.