incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

建议增加两个windows环境下的脚本方便调试

Open HerovNL opened this issue 6 years ago • 3 comments

(1)初始化数据库(bin/init_store.bat):

@echo off
set LAST_PATH=%cd%
cd /d  %~dp0
cd ..
set LIB_DIR=%cd%\lib
cd %LAST_PATH%
@java -classpath "%LIB_DIR%\*" com.baidu.hugegraph.cmd.InitStore %*

(2)启动hugegraph_server(bin/start_hugegraph.bat):

@echo off
set LAST_PATH=%cd%
cd /d  %~dp0
cd ..
set LOG_CONF=%cd%\conf\log4j2.xml
set LIB_DIR=%cd%\lib
rem cd %LAST_PATH%
@java "-Dlog4j.configurationFile=%LOG_CONF%" -classpath "%LIB_DIR%\*" com.baidu.hugegraph.dist.HugeGraphServer %*

HerovNL avatar Nov 18 '20 03:11 HerovNL

@HerovNL 感谢反馈,也欢迎贡献完善的Windows版本脚本。

另外,代码可以使用代码块引用起来,格式比较清晰:

@echo off
set LAST_PATH=%cd%
cd /d %~dp0
cd ..
@java -classpath "lib/" com.baidu.hugegraph.cmd.InitStore %
cd %LAST_PATH%

javeme avatar Nov 18 '20 07:11 javeme

调整了下,避免运行完没回到原来目录

HerovNL avatar Nov 19 '20 12:11 HerovNL

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

github-actions[bot] avatar Jun 30 '21 21:06 github-actions[bot]