fix: RHEL10永久启用io_uring
All checks were successful
Generate Checksums / checksums (push) Successful in 45s

This commit is contained in:
2026-01-31 07:29:05 +08:00
parent 758e1c8799
commit 1817c60ca8

View File

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