由于weblogic使用  nohup ./startWebLogic.sh &   启动时会将所有日志打印到nohup.out上,长此以往会导致该文件越来越大,不便于管理。

故下面介绍如何重定向该日志:

在startWebLogic.sh 或 startManagedWebLogic.sh文件中 #Start Derby# 这一行的上面增加WLS_REDIRECT_LOG重定向日志文件:

WLS_REDIRECT_LOG="/weblogic/domain/base_domain/log/weblogic.$$.log"

 

之后再使用 nohup ./startWebLogic.sh &  命令启动时,日志会按照进程号打印到"/weblogic/domain/base_domain/log/"目录下。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-10-22
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-08-30
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-08-29
  • 2021-08-21
相关资源
相似解决方案