I installed Neo4j on Ubuntu 12.04 using these instructions: http://www.neo4j.org/download/linux
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt
This worked for me on Arch Linux (x86_64), where prior to these modifications ulimit -n was 1024):
Edit /etc/pam.d/su, add:
session required pam_limits.so
Edit both
/etc/systemd/system.conf
/etc/systemd/user.conf
add to each (whatever value you desire: I chose 100,000):
DefaultLimitNOFILE=100000
Reboot.
$ ulimit -n
100000
Based on
https://ro-che.info/articles/2017-03-26-increase-open-files-limit
https://wiki.archlinux.org/index.php/Limits.conf