如何在Windows7上配置nosql db voldemort

如何在Windows7上配置nosql db voldemort,nosql,voldemort,Nosql,Voldemort,我是伏地魔数据库的新用户 我指的是 我按照第一步,下载了档案并将其解压缩到“D:\Voldemort\”中 在第二步中,当我转到命令提示符并键入command时 D:\Voldemort\voldemort-0.96>bin/voldemort-server.sh config/single_node_cluster 我得到以下错误 “bin”未被识别为内部或外部命令,可操作 程序或批处理文件 有没有办法解决这个问题 网络上有任何分步指南吗?bin/voldemort-server.sh

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

我指的是 我按照第一步,下载了档案并将其解压缩到“D:\Voldemort\”中

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

D:\Voldemort\voldemort-0.96>bin/voldemort-server.sh config/single_node_cluster
我得到以下错误

“bin”未被识别为内部或外部命令,可操作 程序或批处理文件

有没有办法解决这个问题


网络上有任何分步指南吗?

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

该链接给出了在Linux中运行伏地魔nosql db的步骤


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

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

该链接给出了在Linux中运行伏地魔nosql db的步骤


如果你想在windows上运行伏地魔。你必须将所有shell脚本(.sh文件)转换为批处理文件(.bat)

你可以参考以下博客:

以下是bat文件:

伏地魔-shell.bat:

@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

run-class.bat:

@回音

REM REM版权2008-2009 LinkedIn,Inc REM版权2010 Erik Howard REM REM根据Apache许可证2.0版(以下简称“许可证”)获得许可;REM除非遵守许可证,否则您不得使用此文件。REM除非适用法律要求或书面同意,否则您可以在REM处获得许可证副本。根据许可证分发的软件REM是按“原样”分发的,REM不提供任何明示或暗示的担保或条件。REM请参阅许可证,了解许可证下管理权限和REM限制的特定语言。雷姆

设置计数=0 对于%%a in(%*)进行设置/a计数+=1 如果%Count%gtr 1转到:继续 回显%0 java类名[选项] 后藤:eof :继续

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

您可以参考此博客:

以下是bat文件:

伏地魔-shell.bat:

@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

run-class.bat:

@回音

REM REM版权2008-2009 LinkedIn,Inc REM版权2010 Erik Howard REM REM根据Apache许可证2.0版(以下简称“许可证”)获得许可;REM除非遵守许可证,否则您不得使用此文件。REM除非适用法律要求或书面同意,否则您可以在REM处获得许可证副本。根据许可证分发的软件REM是按“原样”分发的,REM不提供任何明示或暗示的担保或条件。REM请参阅许可证,了解许可证下管理权限和REM限制的特定语言。雷姆

设置计数=0 对于%%a in(%*)进行设置/a计数+=1 如果%Count%gtr 1转到:继续 回显%0 java类名[选项] 后藤:eof :继续

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

你能发布或提供你的bat文件吗?你能发布或提供你的bat文件吗?