2

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.

4

1 回答 1

6

如果您想将stdout和都重定向stderr/dev/null,您可以发出:

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

您可能还想阅读有关I/O 重定向的内容。

于 2013-05-28T15:14:37.390 回答