Dont forget to
./configure --with-maxconn=4096
then
make clean server
also
chmod a+x login-server && chmod a+x char-server && chmod a+x map-server && chmod a+x athena-start
Goodluck!
I'm using Debian 9
Be sure rathena is not running
./athena-start stop
First
nano /etc/sysctl.conf
then add this below
fs.file-max = 360000
net.ipv4.ip_local_port_range = 1024 65000
Second
nano /etc/security/limits.conf
add this file below # End of file
* hard nofile 65535
* soft nofile 65535
root hard nofile 65535
root soft nofile 65535
Third
./configure --with-maxconn=4096
Fourth
make clean server
Fifth
chmod a+x login-server && chmod a+x char-server && chmod a+x map-server && chmod a+x athena-start
Last
./athena-start start
Good luck