在一台机器上同时运行多个Neo4j实例
2013-09-26 14:47
656 查看
Neo4j can be set up to run as several instances on one machine, providing for instance several databases for development. To configure, install two instances of the Neo4j Server in two different directories following the steps outlined below.
First, create a directory to hold both database instances, and unpack the development instance:
Next, configure the instance by changing the following values in dev/conf/neo4j-server.properties, see evenSection 25.1,
“Securing access to the Neo4j Server”:
Before running the Windows install or startup, change in dev/conf/neo4j-wrapper.properties
Start the instance:
Check that instance is available by browsing to http://localhost:7474/webadmin/
In many cases during ap
bca0
plication development, it is desirable to have one development database set up, and another against which to run unit tests. For the following example, we are assuming that both databases will run on the same host.
Now create the unit testing second instance:
Next, configure the instance by changing the following values in test/conf/neo4j-server.properties to
change the server port to
Differentiate the instance from the development instance by modifying test/conf/neo4j-wrapper.properties.
On Windows, you even need to change the name of the service in bin\neo4j.bat to be able to run it together with the first instance.
Start the instance:
Check that instance is available by browsing to http://localhost:7475/webadmin/
First instance
First, create a directory to hold both database instances, and unpack the development instance:cd $INSTANCE_ROOT
mkdir -p neo4j
cd neo4j
tar -xvzf /path/to/neo4j-community.tar.gz
mv neo4j-community dev
Next, configure the instance by changing the following values in dev/conf/neo4j-server.properties, see evenSection 25.1,
“Securing access to the Neo4j Server”:
org.neo4j.server.webserver.port=7474 # Uncomment the following if the instance will be accessed from a host other than localhost. org.neo4j.server.webserver.address=0.0.0.0 |
# Name of the service for the first instance wrapper.name=neo4j_1 |
dev/bin/neo4j start
Check that instance is available by browsing to http://localhost:7474/webadmin/
Second instance (testing, development)
In many cases during apbca0
plication development, it is desirable to have one development database set up, and another against which to run unit tests. For the following example, we are assuming that both databases will run on the same host.
Now create the unit testing second instance:
cd $INSTANCE_ROOT/neo4j
tar -xvzf /path/to/neo4j-community.tar.gz
mv neo4j-community test
Next, configure the instance by changing the following values in test/conf/neo4j-server.properties to
change the server port to
7475
# Note the different port number from the development instance org.neo4j.server.webserver.port=7475 # Uncomment the following if the instance will be accessed from a host other than localhost org.neo4j.server.webserver.address=0.0.0.0 |
wrapper.name=neo4j- test |
set serviceName=Neo4j-Server- test set serviceDisplayName=Neo4j-Server- test |
test/bin/neo4j start
Check that instance is available by browsing to http://localhost:7475/webadmin/
相关文章推荐
- 在一台机器上同时运行多个Neo4j实例
- 避免在一台机器上同时运行同一应用程序的多个实例。
- 发现一台机器中同时运行多个Oracle实例时。。。
- 一台机器同时运行多个appium实例
- play版本升级、降级 & dependencies.yml & 一台机器多版本 & 同时运行多个实例
- 避免在一台机器上同时运行同一应用程序的多个实例。
- 解决一台机器同时运行多个Tomcat服务
- 一台机器运行多个JBoss多实例, 解决JBoss端口冲突
- ASP.NET1.1程序和一套ASP.NET2.0程序能不能在同一台机器上同时运行
- 一台机器同时运行两个或多个tomcat
- 一台机器同时运行两个Tomcat
- 解决一台机器同时运行多个Tomcat服务
- 一台机器运行多个JBoss 4.2.3多实例,或多个同一版
- 一台机器同时运行多个Tomcat服务解决方案(补充版)
- 修改tomcat端口,使一台机器同时运行2个tomcat
- tomcat does not exist /多个tomcat运行在一台机器上/一个tomcat运行多个实例
- 在同一台机器上同时运行多个tomcat!
- 一台机器运行多个JBoss多实例
- tomcat does not exist /多个tomcat运行在一台机器上/一个tomcat运行多个实例
- 一台机器同一份tomcat运行多个tomcat实例