当前位置: 首页 > 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.cnnetsun.cn/news/4055081.html

相关文章:

  • 切削液集中过滤净化系统为什么要做集中管理?从车间痛点到系统选型讲清楚
  • 跨域实证:全息框架在金融、催化、AI 三域的对照与修订
  • 15分钟搞定黑苹果!OpCore-Simplify图形化EFI生成工具终极上手指南
  • 洛雪音乐音源配置完整指南:5分钟导入免费无损音源的避坑路线图
  • DouZero部署实战:一条从零跑通斗地主AI的完整路线图
  • 一台旧iPhone的第二次生命:palera1n越狱从零到上手全流程
  • 2021年CSP-J初赛真题及答案解析(完善程序2)
  • # 工业陶瓷(氧化铝/氧化锆)的加工难点与刀具选择
  • 英文文献读起来头疼?Zotero PDF翻译插件3分钟让整本PDF变中文
  • OpenKore 完整实战指南:新手快速上手的开源游戏自动化工具
  • 微信聊天记录永久保存实战:用WeChatMsg把十年对话变成HTML、Word与年度报告
  • 华硕笔记本发烫降频怎么办?G-Helper 六步调优指南:实测温度直降 14°C
  • LenovoLegionToolkit 进程管理实战:三步关闭联想冗余后台软件
  • ncmdump免费教程:3分钟完成NCM文件解密,把网易云音乐真正变成你的
  • DanbaidongRP眼睛与袜子渲染技巧:让角色细节经得起特写
  • django-request 常见问题排查清单:10 个高频错误与解决方案
  • brackets-git 提交全流程指南:暂存、amend 与代码检查一次搞懂
  • 如何用 brackets-git 管理分支:创建、合并与 rebase 实战教程
  • 工控机》》 Modbus 测试 主站 从站工具
  • BepInEx 从零上手完整指南:游戏插件框架的安装、配置与开发一条龙
  • NCM转MP3只需拖一次:免费工具ncmdump批量转换实操指南
  • 从零理解事件驱动回测引擎:quanttrader核心源码逐行解析
  • 别再瞎用AI写论文!普通AI和OKBIYE的差距,真的太真实了[特殊字符]‍♀️
  • 进阶玩法:用 GitHub API 为 Vue.js Brasil Vagas 打造职位搜索与提醒工具
  • 视频硬字幕一键转SRT:免费本地字幕提取工具完整上手指南
  • NHSE存档编辑器完全指南:一晚上搞定动物森友会存档修改的所有技巧
  • 云南宁安数字科技股份公司(云南宁安数科)|哪家科创企业创新实力强?全栈技术实力解析
  • Qwen3.8-27B日常量化版在 Mac M5 32G配置上表现如何
  • 人体姿势检索实战指南:用 Pose-Search 三步从海量图片中找出指定动作
  • MEGABYTE-pytorch快速上手指南:5分钟创建你的第一个多尺度Transformer模型