小编amq*_*amq的帖子

在 CentOS 7 上为 systemd 启动的进程增加 nproc

我已经成功地增加了本地用户的 nofile 和 nproc 值,但是我找不到适合 systemd 启动的进程的解决方案。将 max_open_files 添加到 MariaDB 配置无济于事。su - mysql手动更改限制也不起作用(此帐户当前不可用)。

/etc/security/limits.conf

* soft nofile 102400
* hard nofile 102400
* soft nproc 10240
* hard nproc 10240
Run Code Online (Sandbox Code Playgroud)

/etc/security/limits.d/20-nproc.conf(目录中没有其他文件)

* soft nofile 102400
* hard nofile 102400
* soft nproc 10240
* hard nproc 10240
Run Code Online (Sandbox Code Playgroud)

/etc/sysctl.conf

fs.file-max = 2097152
Run Code Online (Sandbox Code Playgroud)

/etc/pam.d/system-auth

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_unix.so nullok …
Run Code Online (Sandbox Code Playgroud)

linux centos mariadb systemd

38
推荐指数
2
解决办法
7万
查看次数

标签 统计

centos ×1

linux ×1

mariadb ×1

systemd ×1