未通过Windows /etc/security/limits.conf、/etc/systemd/user.conf和/etc/security/limits.conf在Ubuntu 18.04.1上保存的文件

时间:2019-04-04 17:26:19

标签: solr virtual-machine ubuntu-18.04

我正在使用Ubuntu 18.04.1 LTS

运行solr start时出现此错误:

*** [WARN] *** Your open file limit is currently 1024.
 It should be set to 65000 to avoid operational disruption.
 If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
*** [WARN] ***  Your Max Processes Limit is currently 7823.
 It should be set to 65000 to avoid operational disruption.
 If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh

我已经进入/etc/systemd/system.conf && /etc/systemd/user.conf并添加了:

DefaultLimitNOFILE=65000

并将其添加到/etc/security/limits.conf

antonio_pavicevac_ortiz hard nofile 65000
antonio_pavicevac_ortiz soft nofile 65000
antonio_pavicevac_ortiz hard nproc 65000
antonio_pavicevac_ortiz soft nproc 65000

然后我回到/mnt/c/Program Files/solr-6.6.2/bin$并执行:

solr start

并警告我仍然在1024上!!

有什么建议吗?

0 个答案:

没有答案