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,旧版系统不能安装否则会出现严重问题