Bash 在Linux中后台启动weblogic服务器

Bash 在Linux中后台启动weblogic服务器,bash,unix,weblogic,Bash,Unix,Weblogic,我已安装Weblogic Server 10.3.6,并使用以下脚本启动我的服务器: user_projects/domains/my_domain/bin/startWebLogic.sh 我发现以下命令可在后台启动服务器: nohup startWebLogic.sh & 但是当我使用这个命令时,我得到了这个输出: -bash-3.2$ nohup ./startWebLogic.sh & [2] 25379 -bash-3.2$ nohup: appending out

我已安装Weblogic Server 10.3.6,并使用以下脚本启动我的服务器:

user_projects/domains/my_domain/bin/startWebLogic.sh
我发现以下命令可在后台启动服务器:

nohup startWebLogic.sh &
但是当我使用这个命令时,我得到了这个输出:

-bash-3.2$ nohup ./startWebLogic.sh &
[2] 25379
-bash-3.2$ nohup: appending output to `nohup.out'
所以在这里,我必须按回车键,从这里出来,进入新行。 现在,我的要求是,当我运行命令时,服务器应该启动,我必须从这里转到一个新行,如:

-bash-3.2$ nohup ./startWebLogic.sh &
[2] 25379
-bash-3.2$ nohup: appending output to `nohup.out'
-bash-3.2$
有人能帮我一下吗。我正在使用bashshell。

nohup startweblog.sh/dev/null&
nohup startWebLogic.sh < /dev/null &> /dev/null &

尽量避免附加文件描述符。所以这个答案只是为了给其他答案添加一点


您报告的不是错误。只是没有在终端中正确设置新行,您可以在不进行第二次“回车”的情况下继续工作。

google“weblogic作为守护进程”您将获得帮助。请尝试
nohup./startWeblogic.sh>/dev/null 2>&1&
nohup.startWeblogic.sh>nohup.out 2>&1&
如果您希望将stdout/stderr重定向到nohup.out,这非常有效。我将避免使用将sdtout/sdterr重定向到文件,这将创建一个增长不受控制的文件。这对于开发/测试环境来说可能还可以,但对于生产环境来说却不可以。这不是一个答案,应该是对另一个答案的评论。当你有一个多一点的声誉,你将能够添加评论。