我在 MAC OSX 上。我在 ~/.bash_profile 中添加了这些行:
PATH="/usr/local/stardog/bin:${PATH}"
export STARDOG_HOME=/data/stardog
export PATH
然后,在命令行中,我执行
cp stardog-licence-key.bin $STARDOG_HOME
正如快速入门文档所述。
但是,这似乎没用,因为当我执行时sudo stardog-admin server start
,它说:
A Stardog license was not found.
The license file 'stardog-license-key.bin'
should be in your Stardog Home directory 'xx/xx'.
xx/xx 是我启动此命令时的当前目录……但 stardog 主目录应该是 /data/stardog,而不是我的工作目录!
如何告诉stardog他的实际主目录?