当前位置:网站首页>Neo4j服务配置
Neo4j服务配置
2022-08-08 06:21:00 【feifeiyechuan】
1、远程服务器Linux配置环境:
(1)安装包
# python环境:
python3.6.8
py2neo==3.1.2
# neo4j环境
neo4j==3.5.6(2)neo4j配置
vim conf/neo4j.conf;
# 检查配置文件
dbms.connectors.default_listen_address=0.0.0.0#远程访问
dbms.connector.bolt.enabled=true #bolt服务,默认端口7687
dbms.connector.http.enabled=true #http服务,默认端口7474
dbms.connector.https.enabled=true #https服务,默认端口7473
# 注意如果要修改服务端口,只修改bolt和https即可
例如:
只修改一下内容:后面的端口号自己设置,顺便我服务器的端口映射为9008:10125, 9009:10126
dbms.connector.bolt.listen_address=0.0.0.0:9009
dbms.connector.http.listen_address=0.0.0.0:9008(3)本地pyneo访问:
class Neo4j(object):
def __init__(self):
# 注意这儿要用user="", password="",而不用author=(),可能是版本问题吧 ,都试试
self.graph = Graph(host='0.0.0.0', http_port=9008, bolt_port=9009, user="neo4j",password="123456")
# 底层剖析(位置:py2neo/database/__init__)
The full set of `settings` supported are:
============== ============================================= ============== =============
Keyword Description Type(s) Default
============== ============================================= ============== =============
``bolt`` Use Bolt* protocol (`None` means autodetect) bool, ``None`` ``None``
``secure`` Use a secure connection (Bolt/TLS + HTTPS) bool ``False``
``host`` Database server host name str ``'localhost'``
``http_port`` Port for HTTP traffic int ``7474``
``https_port`` Port for HTTPS traffic int ``7473``
``bolt_port`` Port for Bolt traffic int ``7687``
``user`` User to authenticate as str ``'neo4j'``
``password`` Password to use for authentication str `no default`
============== ============================================= ============== =============(4)远程访问(注意端口调用, 网址使用http端口,登录使用bolt端口,记得修改啊)

边栏推荐
- State Compression Review
- 独立成分分析ICA/FastICA
- 分布式系统API网关原理及选型
- 2-SAT
- cnn convolutional neural network backpropagation, convolutional neural network dimension change
- screen 命令修改默认快捷键ctrl + a
- PAT乙级-B1029 旧键盘(20)
- AttributeError: ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘
- Disadvantages of flex layout
- 使用XGboost进行分类,判断该患者是否患有糖尿病
猜你喜欢
随机推荐
数组拼接时维度的重要性
快要“金九银十”了,你开始准备了吗?
Tensorboard 对训练性能影响
“忙碌”的 Polkadot最新努力,对DOT投资者意味着什么?
学生管理系统
2021 mathematical modeling national competition question B
模板实例化导致编译器未能识别decltype(auto)
YoloV4训练自己的数据集(二)
分布式系统API网关原理及选型
The amount of parameters and calculation of neural network, is the neural network a parametric model?
Rust学习:5_所有权与借用
命令提示符adb shell的具体配置和使用方法
leetcode 232. Implement Queue using Stacks
docker 安装 Redis 并配置持久化
docker修改mysql配置文件
APISIX Ingress v1.5-rc1 released
摔倒检测综述
【分布式】链路追踪 jaeger
刚学,这是怎么回事,SQL怎么转运错误啊
学习残差神经网络(ResNet)









