gpt4 book ai didi

bash - 在 Linux 中在后台启动 weblogic 服务器

转载 作者:行者123 更新时间:2023-11-29 08:57:26 24 4
gpt4 key购买 nike

我已经安装了 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'

所以在这里我必须按 Enter 才能退出并转到新行。现在我的要求是,当我运行命令时,服务器应该启动,我必须从这里换行,比如:

-bash-3.2$ nohup ./startWebLogic.sh &
[2] 25379
-bash-3.2$ nohup: appending output to `nohup.out'
-bash-3.2$

有人可以帮我解决这个问题吗?我正在使用 bash shell。

最佳答案

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

尽量避免留下附加的文件描述符。所以

关于bash - 在 Linux 中在后台启动 weblogic 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16604358/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com