我在为超过 1000 名听众设置 screamcastv2 时遇到了问题。我总是从 screamcast 日志中收到以下消息。使用 screamcast v1 时,我没有遇到这个问题。
INFO [MAIN] Limited to 1024 file descriptors [relates to ulimit -n]
所有文件均已正确配置。
/etc/security/limits.d/90-nproc.conf
/etc/security/limits.conf
查看服务器输出:
[root@live ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 96349
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 65535
cat /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
有谁可以知道嗎?
感谢您。
答案1
我假设您以“root”用户身份运行shoutcastv2进程。如果是这样,您需要更改 limits.conf 并指定“root”而不是“wildcard”。
man limits.conf
NOTE: group and wildcard limits are not applied to the root user.
To set a limit for the root user, this field must contain the
literal username root.