---
title: "Solaris 系统下weblogic后台启动脚本"
author: "yang_min"
date: "2012-05-29T10:58:12Z"
tags: []
categories: ["开源软件"]
slug: "solaris-weblogic"
draft: false
lastmod: "2012-05-29T10:58:12Z"
id: 1543482
url: "https://yang-min.iteye.com/blog/1543482"
---

vi weblogic.sh  

 

脚本代码如下,可以讲对应的路径换成当前系统weblogic安装路径,

```
#!/bin/sh 
case $1 in  
start)  
nohup /usr/local/bea/user_projects/domains/base_domain/bin/startWebLogic.sh >/tmp/weblogic10.log 2>&1 &  
;;  
stop)  
 /usr/local/bea/user_projects/domains/base_domain/bin/stopWebLogic.sh >/tmp/weblogic10.log 2>&1 &  
;;  
restart)  
 /usr/local/bea/user_projects/domains/base_domain/bin/stopWebLogic.sh >/tmp/weblogic10.log 2>&1 &  
nohup /usr/local/bea/user_projects/domains/base_domain/bin/startWebLogic.sh >/tmp/weblogic10.log 2>&1 &  
   
;;  
*)  
echo "usage:weblogic start|stop|restart"  
;;  
esac  
exit 0 
```

 

 

记得给执行权限:

chmod +x webloigc.sh

 

一般放到/etc/init.d/ 目录下