您的位置:首页 > 运维架构

Opentsdb 启动显示配置文件不存在

2016-05-10 19:49 281 查看
今天 重新启动opentsdb 出现本地配置文件不存在 这不知道 我查了一下官网 了解到

You can use the
--config
command line argument to specify the full path to a configuration file. Otherwise if not specified, OpenTSDB and some of the command-line tools will attempt to search for a valid configuration file in the following locations:

这个大致意思就是 你要去写配置文件 否则,如果没有指定,opentsdb和一些命令行工具将尝试寻找一个有效的配置文件的位置:

./opentsdb.conf

/etc/opentsdb.conf

/etc/opentsdb/opentsdb.conf

/opt/opentsdb/opentsdb.conf

于是我就在 建立了/opt/opentsdb/opentsdb.conf 文件 并对文件进行了配置 启动时候 显示 staticroot 文件不存在 但是目录下就有该文件

于是我把又在官网了解到 可以在配置文件中配置staticroot 文件的路径 于是我配置该文件

tsd.network.port = 4242
tsd.http.staticroot =build/staticroot
tsd.http.cachedir = /tmp/tsd
tsd.core.auto_create_metrics = true
tsd.storage.hbase.zk_quorum =192.168.12.62,192.168.12.63,192.168.12.64
tsd.http.staticroot=/usr/app/opentsdb-2.2.0/build/staticroot

这时候opentsdb 又可以重新启动了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: