Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
HerovNL opened this issue Nov 18, 2020 · 3 comments
Closed

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

HerovNL opened this issue Nov 18, 2020 · 3 comments
Labels

Comments

@HerovNL
Copy link

HerovNL commented Nov 18, 2020

(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 %*
@javeme
Copy link
Contributor

javeme commented Nov 18, 2020

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

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

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

@HerovNL
Copy link
Author

HerovNL commented Nov 19, 2020

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

@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants