I followed this answer: https://askubuntu.com/a/162230
I edit limits.conf, now it is
* soft nofile 65536* hard nofile 65536* soft nproc 65536* hard nproc Unlimitedroot soft nofile 65536root hard nofile 65536
Also, I edit both "/etc/pam.d/common-session" and "/etc/pam.d/common-session-noninteractive". Add the line at the end of both files:
session required pam_limits.so
And I restarted the Ubuntu, but "prlimit" still shows
NOFILE ... 1024 65536 files
ulimit -n
also shows 1024
How could I change this permanently?