zoukankan      html  css  js  c++  java
  • mac使用influxdb和grafana

    mac使用influxdb和grafana

    influxdb安装以及配置

    brew update
    brew install influxdb
    ln -sfv /usr/local/opt/influxdb/*.plist ~/Library/LaunchAgents
    
    # 配置文件在/etc/influxdb/influxdb.conf ,如果没有就将/usr/local/etc/influxdb.conf 拷一个过去
    配置缓存:cache-max-memory-size
    
    #启动服务
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist
    
    #停止服务
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist
    
    #前台启动
    influxd -config /usr/local/etc/influxdb.conf
    
    查看influxdb运行配置
    influxd config
    

    安装

    如果没有安装过

    brew update
    brew install grafana
    

    如果安装了现在需要升级

    brew update
    brew reinstall grafana
    

    运行

    brew services start grafana
    

    停止

    brew services stop grafana
    

    浏览器打开

    输入http://127.0.0.1:3000即可打开其画面,默认登陆用户名,密码admin/admin

    编写爬虫代码

    -- 爬虫使用的 MongoDB 的 database 名称为 spider_data;
    -- 爬虫使用的 MongoDB 的 table 名称为 qsbk;
    
  • 相关阅读:
    Day 03
    Day 02
    Day 01
    re正则表达四
    python学习05之数据可视化
    python学习04之柱形图和热图
    python学习03之线图表
    python的学习02之数据处理
    python的学习01之csv文件处理
    中国大学排名实例
  • 原文地址:https://www.cnblogs.com/c-x-a/p/10051596.html
Copyright © 2011-2022 走看看