您的位置:首页 > 其它

windows安装OrientDB总结

2016-04-09 19:14 387 查看
下载commons-daemon-1.0.15-bin-windows.zip,下载地址http://mirrors.noc.im/apache//commons/daemon/binaries/windows/commons-daemon-1.0.15-bin-windows.zip,并解压

下载orientdb-community-2.1.13.zip ,下载地址http://orientdb.com/download.php?email=unknown@unknown.com&file=orientdb-community-2.1.13.zip&os=win,并解压

在orientDB目录下新建server文件夹,并将

复制到server目录下,并将其重命名为

,注意按照大小进行命名,别弄错了.

创建一个文本文件并将其命名为installService.bat,将以下内容复制进去,

:: OrientDB Windows Service Installation
@echo off
rem Remove surrounding quotes from the first parameter
set str=C:\Program Files (x86)\Java\jdk1.7.0_55\jre\bin\server\jvm.dll
rem Check JVM DLL location parameter
if "%str%" == "" goto missingJVM
set JVM_DLL=%str%
rem Remove surrounding quotes from the second parameter
set str=C:\orientdb
rem Check OrientDB Home location parameter
if "%str%" == "" goto missingOrientDBHome
set ORIENTDB_HOME=%str%

set CONFIG_FILE=%ORIENTDB_HOME%/config/orientdb-server-config.xml
set LOG_FILE=%ORIENTDB_HOME%/config/orientdb-server-log.properties
set LOG_CONSOLE_LEVEL=info
set LOG_FILE_LEVEL=fine
set WWW_PATH=%ORIENTDB_HOME%/www
set ORIENTDB_ENCODING=UTF8
set ORIENTDB_SETTINGS=-Dprofiler.enabled=true -Dcache.level1.enabled=false -Dcache.level2.strategy=1
set JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError

rem Install service
OrientDBGraph.exe //IS --DisplayName="OrientDB GraphEd" ^
--Description="OrientDB Graph Edition, aka GraphEd, contains OrientDB server integrated with the latest release of the TinkerPop Open Source technology stack supporting property graph data model." ^
--StartClass=com.orientechnologies.orient.server.OServerMain --StopClass=com.orientechnologies.orient.server.OServerShutdownMain ^
--Classpath="%ORIENTDB_HOME%\lib\*" --JvmOptions "-Dfile.Encoding=%ORIENTDB_ENCODING%;-Djava.util.logging.config.file="%LOG_FILE%";-Dorientdb.config.file="%CONFIG_FILE%";-Dorientdb.www.path="%WWW_PATH%";-Dlog.console.level=%LOG_CONSOLE_LEVEL%;-Dlog.file.level=%LOG_FILE_LEVEL%;-Dorientdb.build.number="@BUILD@";-DORIENTDB_HOME=%ORIENTDB_HOME%" ^
--StartMode=jvm --StartPath="%ORIENTDB_HOME%\bin" --StopMode=jvm --StopPath="%ORIENTDB_HOME%\bin" --Jvm="%JVM_DLL%" --LogPath="%ORIENTDB_HOME%\log" --Startup=auto

EXIT /B

:missingJVM
echo Insert the JVM DLL location
goto printUsage

:missingOrientDBHome
echo Insert the OrientDB Home
goto printUsage

:printUsage
echo usage:
echo     installService JVM_DLL_location OrientDB_Home
EXIT /B


将set str= 后的内容设置为自己机器上的jvm.dll以及数据库锁存放的位注意要用32位的,我一开始用的64位的,结果老报错,后来才发现的.

5.在cmd窗口中输入

,程序自动执行,然后打开服务即可看到orientDB已经在服务中,右键启动即可,


6.浏览器输入http://localhost:2480/studio/index.html#/ 即显示登录页面


第一次写博客,刚安装完以后准备写来着,结果CSDN维护.回家以后想在家里机器装一个,结果orientDB官网打不开了无法下载,好事多磨,最终还是写完,算是给自己的一个总结吧,也希望能帮到有需要的朋友,少走些弯路,One for all and all for one.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: