数据库启动

后端
观看:0
最后更新:2026年04月08 19:38
shell
conda create -n dbs python=3.12

conda activate dbs

conda install conda-forge::rdkit-postgresql

# 初始化数据库--指定数据库文件的存放位置
initdb -D /home/ch/databases/

# 测试运行
postgres -D /home/ch/databases/

设置权限

python
# postgresql.conf
listen_addresses = '*'
# pg_hba.conf
host all all 0.0.0.0/0 md5

转发到node节点

启动

shell
pg_ctl -D /home/ch/databases -l logfile start
# 关闭
pg_ctl -D /home/ch/databases -l logfile stop

请登录后再发表评论
🔍 快速搜索
文章推荐
基于文本相似性

没有推荐的文章...

文章推荐
化学结构同出现

没有对应的文章...

AioChem © 2025

晋ICP备2025060790号-1