当前位置:网站首页>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端口,记得修改啊)

边栏推荐
猜你喜欢
随机推荐
Pit Filling Simulated Hash Table
【微信小程序】一文学懂小程序的数据绑定和事件绑定
The pta patching simple graph theory
使用模板引擎时,Uncaught TemplateError报错原因小结
请问学习MySQL应该安装哪个版本,现在哪个版本使用最多?
np.iinfo和 np.finfo的用法
Threads, control, communications
装机~ E5 剪辑
我的第一篇博客
最完整的分布式架构设计图谱
EOF指令在C语言中的作用
leetcode 5 最长回文子串std::pair 和 make_pair运用
torch.gather() usage interpretation
函数栈帧的创建与销毁
The amount of parameters and calculation of neural network, is the neural network a parametric model?
es6模块+异步promise+async/await
模板引擎art-template
学生管理系统
模板实例化导致编译器未能识别decltype(auto)
What does the "busy" Polkadot latest effort mean for DOT investors?









