fix: RHEL10永久启用io_uring
All checks were successful
Generate Checksums / checksums (push) Successful in 45s
All checks were successful
Generate Checksums / checksums (push) Successful in 45s
This commit is contained in:
@@ -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,旧版系统不能安装否则会出现严重问题
|
||||
|
||||
Reference in New Issue
Block a user