Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 设置通过brew安装的riak要使用的配置_Macos_Homebrew_Riak - Fatal编程技术网

Macos 设置通过brew安装的riak要使用的配置

Macos 设置通过brew安装的riak要使用的配置,macos,homebrew,riak,Macos,Homebrew,Riak,我刚刚做了brew安装--devel-riak,在我的OSX机器上安装了riak 2.0.1。之后,我启动了一个节点: /usr/local/Cellar/riak/2.0.1/bin/riak start 我在ps ax中看到的是它使用了一些/usr/local/ceral/riak/2.0.1/libexec/data/generated.configs/vm.2014.10.03.11.27.37.argsconfig: ➜ ~ ps ax | grep riak 96269 ?

我刚刚做了
brew安装--devel-riak
,在我的OSX机器上安装了riak 2.0.1。之后,我启动了一个节点:

/usr/local/Cellar/riak/2.0.1/bin/riak start
我在ps ax中看到的是它使用了一些
/usr/local/ceral/riak/2.0.1/libexec/data/generated.configs/vm.2014.10.03.11.27.37.args
config:

➜  ~  ps ax | grep riak
96269   ??  S      0:00.01 /usr/local/Cellar/riak/2.0.1/libexec/erts-5.10.3/bin/epmd -daemon
96277   ??  S      0:00.00 /usr/local/Cellar/riak/2.0.1/libexec/erts-5.10.3/bin/run_erl -daemon /tmp/riak// /usr/local/var/log/riak exec /usr/local/Cellar/riak/2.0.1/libexec/bin/riak console
96849 s013  R+     0:00.00 grep riak
96279 s017  Rs+    8:59.91 /usr/local/Cellar/riak/2.0.1/libexec/erts-5.10.3/bin/beam.smp -P 256000 -e 256000 -Q 65536 -A 64 -K true -W w -zdbbl 32768 -- -root /usr/local/Cellar/riak/2.0.1/libexec -progname riak -- -home /Users/kb -- -boot /usr/local/Cellar/riak/2.0.1/libexec/releases/2.0.1/riak -config /usr/local/Cellar/riak/2.0.1/libexec/data/generated.configs/app.2014.10.03.11.27.37.config -setcookie riak -name riak@127.0.0.1 -smp enable -vm_args /usr/local/Cellar/riak/2.0.1/libexec/data/generated.configs/vm.2014.10.03.11.27.37.args -pa /usr/local/Cellar/riak/2.0.1/libexec/lib/basho-patches -- console
据我所知,我想要的是使用
/usr/local/ceral/riak/2.0.1/libexec/etc/riak.conf
config,它更像是来自linux的优秀的
/etc/riak.conf


我应该怎样使用它?谢谢

那里的关键词是生成的
。启动Riak的脚本使用
Riak.conf
文件。它将人们可以编辑的虚线格式转换为erlang想要读取的app.config和vm.args格式。然后,它将其与可能存在的任何advanced.config文件合并,并将其写入
generated.configs
,并让erlang使用该文件。即使在linux上,它也不直接使用riak.conf,而是基于它生成配置


如果您想了解原因和方法,请查看

谢谢!我只是注意到了这一点,想去这里写一个答案:)