首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在windows 7上配置nosql db voldemort

如何在windows 7上配置nosql db voldemort
EN

Stack Overflow用户
提问于 2012-12-26 13:23:12
回答 2查看 1.1K关注 0票数 1

我是伏地魔数据库的新用户。

我指的是http://www.project-voldemort.com/voldemort/quickstart.html --我遵循第一步,下载了归档文件并将其解压缩到"D:\Voldemort\“中。

在第二步中,当我转到命令提示符并键入命令时

代码语言:javascript
复制
D:\Voldemort\voldemort-0.96>bin/voldemort-server.sh config/single_node_cluster

我会跟随错误。

“‘bin”不被识别为内部或外部命令、可操作的程序或批处理文件。

有什么办法解决这个问题吗?

网上是否有一步一步的指南?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-01-10 13:10:09

bin/voldemort-server.sh是linux操作系统中的一个shell文件。它只能在Linux中执行。错误是,我试图在windows命令提示符中运行shell脚本。

链接http://www.project-voldemort.com/voldemort/quickstart.html给出了在Linux中运行Voldemort的步骤。

如果您想在windows上运行voldemort,.You必须将所有shell脚本(.sh文件)转换为批处理文件(.bat)。

票数 0
EN

Stack Overflow用户

发布于 2014-10-24 09:05:47

你可以参考这个博客:http://blog.netoearth.com/html/201107/how-to-install-voldemort-on-windows.htm

以下是bat文件:https://gist.github.com/erikhoward/344463

伏地魔-贝类:

代码语言:javascript
复制
@echo off

REM
REM   Copyright 2008-2009 LinkedIn, Inc
REM   Copyright 2010 Erik Howard http://www.gonosql.com http://erikhoward.net
REM
REM  Licensed under the Apache License, Version 2.0 (the "License");
REM   you may not use this file except in compliance with the License.
REM   You may obtain a copy of the License at
REM
REM      http://www.apache.org/licenses/LICENSE-2.0
REM
REM  Unless required by applicable law or agreed to in writing, software
REM  distributed under the License is distributed on an "AS IS" BASIS,
REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM  See the License for the specific language governing permissions and
REM  limitations under the License.
REM

set Count=0
for %%a in (%*) do set /a Count+=1
if %Count% equ 2 goto :continue
echo USAGE: bin/voldemort-shell.bat store_name bootstrap_url [command_file]
goto :eof
:continue

setlocal
SET BASE_DIR=%~dp0..

%BASE_DIR%\bin\run-class.bat jline.ConsoleRunner voldemort.VoldemortClientShell %*

endlocal

:eof

https://gist.github.com/erikhoward/344450

跑-class.bat.run:

@echo关闭

REM版权2008-2009 LinkedIn,Inc REM版权2010年Erik http://www.gonosql.com http://erikhoward.net REM REM在Apache许可证2.0版(“许可”)下授权;REM除非符合许可,否则不得使用此文件。REM您可以在REM http://www.apache.org/licenses/LICENSE-2.0 REM获得许可证副本,除非有适用法律的要求或书面同意,根据许可证分发的软件REM是在“如实”的基础上分发的,没有任何形式的保证或条件,无论是明示的还是隐含的。REM参见许可下的特定语言管理权限和REM限制。REM

为%a (%*)设置Count=0如果%计数% gtr 1 goto :继续回显%0 java类名选项goto :eof :继续

代码语言:javascript
复制
SET BASE_DIR=%~dp0..
SET CLASSPATH=.

for %%j in (%BASE_DIR%\dist\*.jar) do (call :append_classpath "%%j")
for %%j in (%BASE_DIR%\lib\*.jar) do (call :append_classpath "%%j")
goto :run

:append_classpath
set CLASSPATH=%CLASSPATH%;%1
goto :eof

:run
REM You might have to adjust the max allowable memory setting to fit your environment
if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx256M -server -Dcom.sun.management.jmxremote"
java -Dlog4j.configuration=src/java/log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %*

endlocal
:eof@echo off

REM
REM   Copyright 2008-2009 LinkedIn, Inc
REM   Copyright 2010 Erik Howard http://www.gonosql.com http://erikhoward.net
REM
REM  Licensed under the Apache License, Version 2.0 (the "License");
REM   you may not use this file except in compliance with the License.
REM   You may obtain a copy of the License at
REM
REM      http://www.apache.org/licenses/LICENSE-2.0
REM
REM  Unless required by applicable law or agreed to in writing, software
REM  distributed under the License is distributed on an "AS IS" BASIS,
REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM  See the License for the specific language governing permissions and
REM  limitations under the License.
REM

set Count=0
for %%a in (%*) do set /a Count+=1
if %Count% gtr 1 goto :continue
echo %0 java-class-name [options]
goto :eof
:continue

SET BASE_DIR=%~dp0..
SET CLASSPATH=.

for %%j in (%BASE_DIR%\dist\*.jar) do (call :append_classpath "%%j")
for %%j in (%BASE_DIR%\lib\*.jar) do (call :append_classpath "%%j")
goto :run

:append_classpath
set CLASSPATH=%CLASSPATH%;%1
goto :eof

:run
REM You might have to adjust the max allowable memory setting to fit your environment
if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx256M -server -Dcom.sun.management.jmxremote"
java -Dlog4j.configuration=src/java/log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %*

endlocal
:eof
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14041209

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档