问题
I have installed Weblogic Server 10.3.6, and I use the below script to start my server:
user_projects/domains/my_domain/bin/startWebLogic.sh
I found below command to start the server in background:
nohup startWebLogic.sh &
But when I use this command I am getting this output:
-bash-3.2$ nohup ./startWebLogic.sh &
[2] 25379
-bash-3.2$ nohup: appending output to `nohup.out'
So here I have to press Enter to come out of this and go to new line. Now my requirement is that when I run the command then the server should start and I have to come out of this to a new line, like:
-bash-3.2$ nohup ./startWebLogic.sh &
[2] 25379
-bash-3.2$ nohup: appending output to `nohup.out'
-bash-3.2$
Can someone please help me in this. I am using bash shell.
回答1:
nohup startWebLogic.sh < /dev/null &> /dev/null &
Try to avoid leaving file descriptors attached. So < /dev/null would be good to apply too.
回答2:
This answer is just to add a point other answers.
That you reported is not an error. Just was not properly set up the new line in the terminal, you can continue working without making the second "enter".
来源:https://stackoverflow.com/questions/16604358/starting-weblogic-server-in-background-in-linux