linux - Bash 脚本输出到 rest api 调用

标签 linux bash

我需要使用 bash 脚本监控 Linux 服务器,所以场景是这样的

  1. 我有一个可以监控 Linux 服务的 bash 脚本,它显示 结果权
  2. 现在我需要将 bash 脚本的结果显示到端口 8080 或类似 http://192.168.2.1:8080 的任何端口它会显示 状态代码 200 或错误,所以当我点击 http://192.168.2.1:8080它将执行 bash 脚本并获取结果并显示它

注意:服务器上目前没有运行网络服务

最佳答案

关于linux - Bash 脚本输出到 rest api 调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28344693/

相关文章:

linux - Git GUI 类似于 Bzr Explorer 但对于 Git?

linux - grep 查找包含 jboss 的行- 直到下一个/

python - 在 GNU/Linux 中安装 python 模块

linux - Bash 脚本(分隔字符串)

bash - 在 bash 中逐列混合多个文件

java - 从 Linux ps 输出确定正在运行的类和 jar

linux - 如何检查 Hadoop 守护进程是否正在运行?

linux - cloudcompare挂载硬盘问题

linux - 在 Bash 中将多个摄氏度值转换为华氏度

Bash 脚本 : count unique lines in file