From 1817c60ca8367db796dd95d32ff51046f624118f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 31 Jan 2026 07:29:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20RHEL10=E6=B0=B8=E4=B9=85=E5=90=AF?= =?UTF-8?q?=E7=94=A8io=5Furing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgresql/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgresql/install.sh b/postgresql/install.sh index ae88b01..27bc2e9 100644 --- a/postgresql/install.sh +++ b/postgresql/install.sh @@ -18,7 +18,8 @@ if [ ${OS} == "rhel" ]; then dnf groupinstall "Development Tools" -y dnf install pkg-config make meson ninja-build bison flex gettext zlib-devel readline-devel lz4-devel libzstd-devel liburing-devel libcurl-devel libxml2-devel libxslt-devel openssl-devel libicu-devel systemd-devel -y # RHEL 10+ 默认禁用 io_uring,需要手动开启,https://issues.redhat.com/browse/RHEL-65347 - echo 0 >/proc/sys/kernel/io_uring_disabled + echo "kernel.io_uring_disabled = 0" >/etc/sysctl.d/99-io_uring.conf + sysctl -p /etc/sysctl.d/99-io_uring.conf elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then apt-get update # Debian 13+ 及 Ubuntu 25+ 需要单独安装 systemd-dev,旧版系统不能安装否则会出现严重问题