当前位置: 首页 > news >正文

在aarch64 kylin中安装redrock postgres 18.6

redrock 在postgres 18.6发布后第一时间提供了安装包。
1.下载二进制包

访问 https://www.rockdata.net/zh-cn/download/

kylin@kylin-aaa:/data/i$ wget https://redrock-releases.oss-cn-beijing.aliyuncs.com/v4.2/redrock-18.6-1.linux.aarch64-binaries.tar.gz redrock-18.6-1.linu 100%[===================>] 38.58M 62.6MB/s in 0.6s 2026-08-14 08:10:38 (62.6 MB/s) - 已保存 “redrock-18.6-1.linux.aarch64-binaries.tar.gz” [40452376/40452376])

按照官方文档 https://doc.rockdata.net/zh-cn/installation/ 的步骤安装

kylin@kylin-aaa:/data/i$ sudo docker start p13 [sudo] kylin 的密码: p13 kylin@kylin-aaa:/data/i$ sudo docker exec -it p13 bash root@kylin-aaa:/# cd /par/redrock root@kylin-aaa:/par/redrock# ls bin doc lib share root@kylin-aaa:/par/redrock# # groupadd postgres # useradd -g postgres -s /bin/bash -m postgres # passwd postgres root@kylin-aaa:/par/redrock# groupadd postgres root@kylin-aaa:/par/redrock# useradd -g postgres -s /bin/bash -m postgres root@kylin-aaa:/par/redrock# passwd postgres New password: Retype new password: passwd: password updated successfully root@kylin-aaa:/par/redrock# mkdir pgdata root@kylin-aaa:/par/redrock# chown postgres:postgres pgdata root@kylin-aaa:/par/redrock# su - postgres postgres@kylin-aaa:~$ export PGDATA=//par/redrock/pgdata postgres@kylin-aaa:~$ export PATH=/par/redrock/bin:$PATH postgres@kylin-aaa:~$ initdb The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "C". The default database encoding has accordingly been set to "SQL_ASCII". The default text search configuration will be set to "english". Data page checksums are enabled. fixing permissions on existing directory /par/redrock/pgdata ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default "max_connections" ... 100 selecting default "shared_buffers" ... 128MB selecting default time zone ... Etc/UTC creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok initdb: warning: enabling "trust" authentication for local connections initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: pg_ctl -D //par/redrock/pgdata -l logfile start

启动数据库出错

postgres@kylin-aaa:~$ pg_ctl start waiting for server to start....2026-08-14 00:17:08.979 UTC [48] LOG: starting PostgreSQL 18.6 - redrock 4.2 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-28), 64-bit 2026-08-14 00:17:08.980 UTC [48] LOG: could not bind IPv4 address "127.0.0.1": Address already in use 2026-08-14 00:17:08.980 UTC [48] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. 2026-08-14 00:17:08.980 UTC [48] WARNING: could not create listen socket for "localhost" 2026-08-14 00:17:08.980 UTC [48] FATAL: could not create any TCP/IP sockets 2026-08-14 00:17:08.982 UTC [48] LOG: database system is shut down stopped waiting pg_ctl: could not start server Examine the log output. postgres@kylin-aaa:~$ pg_ctl -D //par/redrock/pgdata -l logfile start waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. postgres@kylin-aaa:~$

因为5432端口已被占用,换用5555端口启动成功,然后psql登录成功

postgres@kylin-aaa:~$ pg_ctl start -o '-p 5555' waiting for server to start....2026-08-14 00:30:04.926 UTC [56] LOG: starting PostgreSQL 18.6 - redrock 4.2 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-28), 64-bit 2026-08-14 00:30:04.926 UTC [56] LOG: listening on IPv4 address "127.0.0.1", port 5555 2026-08-14 00:30:04.933 UTC [56] LOG: listening on Unix socket "/tmp/.s.PGSQL.5555" 2026-08-14 00:30:04.942 UTC [62] LOG: database system was shut down at 2026-08-14 00:16:50 UTC 2026-08-14 00:30:04.949 UTC [56] LOG: database system is ready to accept connections done server started postgres@kylin-aaa:~$ psql -p 5555 psql (18.6 - redrock 4.2) Type "help" for help. Cannot read termcap database; using dumb terminal settings. postgres=# select version(); version ----------------------------------------------------------------------------------------------------------------------------- PostgreSQL 18.6 - redrock 4.2 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-28), 64-bit (1 row)
http://www.jsqmd.com/news/1405735/

相关文章:

  • 静态建站谷歌5天排名案例的有效性。
  • 2026糯米馅老婆饼供应商靠谱性盘点:正规实力品牌选型标准、避坑指南及多服务商甄选解析 - 商业大观
  • VCMI安卓版安装实战指南:三步搞定游戏数据导入,手机畅玩英雄无敌3
  • 2026 延吉家电上门盘点:维修、清洗、空调加氟,推荐延吉小营家电经销处 ,电话:13844775500 - 拜了拜了
  • 2026杭州房屋漏水维修避坑指南|正规修缮与乱象对比,少花冤枉钱 - 筑宅安
  • 2026 三亚吉阳区防水补漏本地实体房屋渗漏检测维修服务商 - 超人防水
  • 龙岗区南湾街道办 零星工程申报混凝土
  • 开点喷漆店,加盟还是自己学技术?想清楚这两点 - 天下观知
  • 2026招投标大数据平台最全盘点:正规服务商怎么选?避坑指南与靠谱平台推荐,附服务商核心能力解析 - 商业大观
  • 高通骁龙 C 笔记本平台亮相:6nm 制程、8 核 CPU,剑指英特尔 N250 设备!
  • 一台旧iPhone的第二次生命:palera1n越狱从零到上手全流程
  • Windows 挂载远程文件夹终极指南:用 SSHFS-Win 免费把服务器目录变成你的本地磁盘
  • 通过 SSH 一键安装飞牛OS(fnOS):完整指南
  • 蒂姆·奥莱利倡导开源人工智能:打破大公司控制,让技术回归大众
  • 下午三点出图、六点收工的日子,是被这个 ComfyUI 脚本集终结的
  • LivePortrait人像动画快速上手指南:如何让一张静态照片开口说话
  • JWT 学习笔记:结构、原理与常见安全风险
  • GitHub Desktop 汉化终极指南:用一款开源工具,5 分钟让英文界面彻底说中文
  • 2026企业招投标数据查询平台:正规服务商选型标准盘点、避坑指南及靠谱选择全解析 - 产业观察报
  • 点喷加盟品牌口碑哪里能查?四个渠道告诉你 - 资讯报道
  • Product Hunt 每日热榜 | 2026-08-14
  • AnimateLCM-SVD高清动画生成指南:4步推理产出25帧视频
  • 管家婆售后揭秘:年采购500万的“大客户”,可能是公司最大的利润黑洞
  • 用 AI 求职助手 Get Jobs 自动投简历,我把找工作变成了一件“跑数据“的事
  • Classic Shell完整上手手册:Windows开始菜单改造与效率提升实战
  • 在 Android 手机上运行完整版 VS Code:vscode_for_android 本地部署与调优指南
  • 一招告别Armoury Crate卡顿:G-Helper,不到10MB的华硕笔记本轻量控制工具
  • AI 漫剧工具横评:知漫剧一站式平台实测解析,对比即梦、小云雀、豆包
  • Python面向对象编程(OOP):从入门到精通
  • RevokeMsgPatcher防撤回补丁4步上手