【问题标题】:How to configure nosql db voldemort on windows 7如何在 Windows 7 上配置 nosql db voldemort
【发布时间】:2014-10-24 17:05:47
【问题描述】:

我是 Voldemort db 的新用户。

我指的是http://www.project-voldemort.com/voldemort/quickstart.html 我按照第一步,下载了存档并解压到“D:\Voldemort\”中。

在第二步,当我进入命令提示符并输入命令时

D:\Voldemort\voldemort-0.96>bin/voldemort-server.sh config/single_node_cluster

我收到以下错误。

'bin' 不是内部或外部命令,可操作 程序或批处理文件。

有没有办法解决这个问题?

网上有分步指南吗?

【问题讨论】:

    标签: nosql voldemort


    【解决方案1】:

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

    这里是 bat 文件:https://gist.github.com/erikhoward/344463

    voldemort-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
    

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

    运行类.bat:

    @echo 关闭

    REM REM 版权所有 2008-2009 LinkedIn, Inc REM 版权所有 2010 Erik Howard http://www.gonosql.com http://erikhoward.net REM REM 根据 Apache 许可证 2.0 版(“许可证”)获得许可; REM 除非遵守许可,否则您不得使用此文件。 REM 您可以通过 REM REM http://www.apache.org/licenses/LICENSE-2.0REM REM 获得许可证的副本任何类型的,无论是明示的还是暗示的。 REM 请参阅许可证以了解许可证下的特定语言管理权限和 REM 限制。快速移动

    设置计数=0 for %%a in (%*) do set /a Count+=1 如果 %Count% gtr 1 转到:继续 echo %0 java-class-name [选项] 转到: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
    

    【讨论】:

      【解决方案2】:

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

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

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

      【讨论】:

      • 能否请您发布或提供您的 bat 文件?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-17
      • 2014-07-09
      • 2012-05-02
      • 2011-02-06
      相关资源
      最近更新 更多