参考这个就可以:
https://neo4j.com/docs/graph-data-science/current/installation/
Download neo4j-graph-data-science-[version].jar from the Neo4j Download Center and copy it into the $NEO4J_HOME/plugins directory.
Add the following to your $NEO4J_HOME/conf/neo4j.conf file:
dbms.security.procedures.unrestricted=my.extensions.example,my.procedures.,apoc.,gds.*
dbms.security.procedures.allowlist=apoc.coll.,apoc.load.,gds.,apoc.
RETURN gds.version()