I want turn on the mail server(apache jmail) by normal user(not root user),
so i tried the following step for under 1024 ports.
It runs well when root turns it on.
But it shutting down few second later when normal user turn it on, and it isn't remain any log on server.
I don't under stand why it is happened, and i can't find any solution by googling.
cd /usr/local/java/bin
setcap 'cap_net_bind_service=+ep' java
cd /etc/ld.so.conf.d
vi java.conf ---> /usr/local/java/lib/amd64/jli
ldconfig
cd ~userId
chown –R userId:group projectfolder
cd /volumes
chown –R userId:group shared
vi /etc/security/limits.conf --->
userId soft nofile 65535
userId hard nofile 65535
vi .bash_profile --->
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
source .bash_profile