문제

cannot figure out which is the correct way to start jboss EAP 6.1 in RedHat Linux.

nohup ./dev/jboss-eap-6.1/bin/standalone.sh 2>&1 < /dev/null &

or

nohup ./dev/jboss-eap-6.1/bin/standalone.sh 2>&1 > /dev/null &

To me the latter makes more sense, but I found the first one when I googled.

Additionally, is one of the above the correct way to start jboss in the server so that it does not quit when I log out? Or is there a better way (like, sudo something) ?

-SGB.

도움이 되었습니까?

해결책

If you want to redirect both stdout and stderr to /dev/null, you can issue:

nohup ./dev/jboss-eap-6.1/bin/standalone.sh > /dev/null 2>&1 &

You probably want to read about I/O Redirection as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top