Title Loading...

  1. Time Loading...
  2. Wordcount Loading...
  3. Pluto

Catalogue

Pi Dashboard Go (Pi 仪表盘的Golang实现)

前言

玩过树莓派的朋友应该都知道一款监控Linux系统状态的仪表盘:Pi Dashboard

界面虽算不上美观,但胜在清晰明了。可后来发觉,Pi Dashboard是用Php写的,部署比较麻烦,不够便携。正好最近在学习Golang,索性决定用 Golang 实现 Pi Dashboard,也就有了本项目:Pi Dashboard Go

安装

得益于Golang语言的特性,Pi Dashboard Go 的部署非常简单:单二进制执行文件

下载

只需要从项目 **Releases **下载可执行文件即可,无任何其他依赖

权限

赋予可执行权限

chmod +x pi-dashboard-go

Note: Pi Dashboard Go 需要root权限

使用

**Pi Dashboard Go **可通过命令行参数进行配置

Usage

Pi Dashboard Go  version: 1.0.0
Project address: https://github.com/plutobell/pi-dashboard-go

Usage: Pi Dashboard Go [-help] [-version] [-port port] [-title title] [-net net] [-disk disk] [-auth usr:psw]

Options:
  -auth string
        specify username and password (default "pi:123")
  -disk string
        specify the disk (default "/")
  -help
        this help
  -net string
        specify the network device (default "lo")
  -port string
        specify the running port (default "8080")
  -title string
        specify the website title (default "Pi Dashboard Go")
  -version
        show version and exit

致谢