afaqurk / linux-dash
1.2.0
2015-02-06 01:42 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-09-28 16:18:18 UTC
README
v2.0
Linux系统的一个简单且低开销的Web仪表盘
功能
- 小巧 ----- 磁盘上小于400KB(删除.git后)!
- 简单 ---- 极简主义、美观的仪表盘
- 容易 ------ 即插即用安装
- 多功能 -- 从Node.js、Go、Python、PHP中选择你的栈
安装
第1步
## 1. clone the repo git clone --depth 1 https://github.com/afaqurk/linux-dash.git ## 2. go to the cloned directory cd linux-dash/app/server
或者,如果您喜欢手动下载
## 1. Download the .zip curl -LOk https://github.com/afaqurk/linux-dash/archive/master.zip && unzip master.zip ## 2. navigate to downloaded & unzipped dir cd linux-dash-master/app/server
第2步
查看首选服务器linux-dash服务器的说明 (包含所有内容)
使用Node.js
## install dependencies npm install --production ## start linux-dash (on port 80 by default; may require sudo) ## You may change this with the `LINUX_DASH_SERVER_PORT` environment variable (eg. `LINUX_DASH_SERVER_PORT=8080 node server`) ## or provide a --port flag to the command below ## Additionally, the server will listen on every network interface (`0.0.0.0`). ## You may change this with the `LINUX_DASH_SERVER_HOST` environment variable (eg. `LINUX_DASH_SERVER_HOST=127.0.0.1 node server`) ## or provide a --host flag to the command below node index.js
使用Go
## start the server (on port 80 by default; may require sudo)
go run index.go
要构建二进制文件,请运行 go build && ./server -h
。有关二进制文件使用选项,请参阅 @tehbilly 的笔记 此处
使用Python
# Start the server (on port 80 by default; may require sudo).
python index.py
使用PHP
- 确保已启用
exec
、shell_exec
和escapeshellarg
函数 - 将您的Web服务器指向
linux-dash
下的app/
目录 - 重新启动您的Web服务器(Apache、nginx等)
- 有关PHP + Apache设置的说明,请参阅 Digital Ocean教程。
- 有关nginx设置的说明,请参阅 此代码段,由 @sergeifilippov 提供。
支持
有关一般帮助,请使用 Gitter聊天室。
安全
强烈建议 通过您选择的任何安全措施来保护所有linux-dash安装。
Linux Dash不提供任何安全或身份验证功能。