GithubHelp home page GithubHelp logo

cronpvdata's Introduction

程序简介cronpvdata
  • 通过gorm访问数据库进行数据的更新
  • 设置定时任务进行数据更新
  • 利用管道chan功能进行死等
  • 同时记录更新记录日志
  • 生成随机数int64

程序说明
  1. 该程序只是临时作为程序更新优易电项目中的统计数据
  2. 最好的方案,同时创建一套硬件设备齐全的电站
  3. 修改统计数据,只是为演示做准备

编译linux 可执行文件
SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build -o cronpvdata main.go

部署
  • 将编译好的程序放在;linux服务器上执行即可
  • 启动命令 nohup ./cronpvdata &
  • 需要定时检查openvpn 是否在正常运行,
  • 需要持续观察手机app数据,是否更新

cronpvdata's People

Contributors

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