我正在使用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上!!
有什么建议吗?