0 Star 24 Fork 10

夏哥 / logserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.00 KB
一键复制 编辑 原始数据 按行查看 历史

aliyun-sdk

  • aliyun-java-sdk-cms,支持上报自定义监控数据,用于上报java应用的gc、threads等数据
  • aliyun-java-sdk-alidns,支持修改DNS解析,用于https证书生成时设置TXT record验证域名

上报自定义监控数据

  • check_app.sh脚本,云主机目录为/soft/shells,其他目录时需要修改相关路径

  • 使用crontab定时执行脚本,参考博客

    */1 * * * * sh /soft/shells/check_apps.sh >> /var/log/cms_check.log

https证书生成

  • 配置aliyun密钥,vi start.sh打开注释并设置accessKeyId、secret,密钥可选保存到文件/etc/aliyun.secret

    ENV_OPS="accessKeyId=7sTaWT0zAVYmtxlq regionId=cn-hangzhou secret=cat /etc/aliyun.secret"

  • 如果需要自动修改DNS解析,打开注释并设置domainName、recordId,参考文档

    ENV_OPS="domainName=xlongwei.com recordId=4012091293697024"

Java
1
https://gitee.com/xlongwei/logserver.git
git@gitee.com:xlongwei/logserver.git
xlongwei
logserver
logserver
master

搜索帮助