Nohup:redirecting stderr to stdout
Turn from: https://blog.csdn.net/educast/article/details/28273301
found that the original good nohup information output to the function of the specified file, suddenly a problem. The phenomenon is the output of the console output to the file I specified, the other part of the output to the nohup.out, and I do not want it to produce nohup.out files, do not know what the reason.
Nohup bin/startmanagedserver.sh myserver htp://192.168.0.1-xms2048m-xmx2048m > Logs/myserver.out & now refers to the line of command, will give me two files, one logs/myserver.out, and the other Nohup.out file.
How to make it not produce nohup.out files.
Online search for a long time, it is said to be able to change the back of the "&" to "2>&1 &", so the start command changed to the following:
Nohup bin/startmanagedserver.sh myserver htp://192.168.0.1-xms2048m-xmx2048m > Logs/myserver.out 2>&1 & Execute again, problem solved.