为什么在更改/ etc / hosts后会重置ulimits


0

这是一个Fedora 25系统。 我不得不将系统名称更新为 node-1 当我这样做通过更新 /etc/hosts 文件,我的 /etc/security/limits.conf 文件也被重置。为什么会这样? 之后我无法为同一个用户设置我的ulimits。虽然一次为 root 没事。

以下是/ etc / hosts的摘录

127.0.0.1   node-1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         node-1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.2.15   node-1

以下是我对/etc/security/limits.conf所做的更改

rranjan        soft    nofile          65536
rranjan        hard    nofile          65536
rranjan        soft    memlock         unlimited
rranjan        hard    memlock         unlimited
rranjan        soft    as              unlimited
rranjan        hard    as              unlimited
rranjan        soft    nproc           2048
rranjan        hard    nproc           2048

root           soft    nofile          65536
root           hard    nofile          65536
root           soft    memlock         unlimited
root           hard    memlock         unlimited
root           soft    as              unlimited
root           hard    as              unlimited
root           soft    nproc           2048
root           hard    nproc           2048

我如何让ulimits再次工作?或者我做错了什么?


1
如果我们知道您使用的是什么,这将有所帮助。
quadruplebucky

更新了它。它是一个Fedora 25系统。
Rajeev Ranjan
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.