Oracle Weblogic Server

Weblogic server servis olarak eklenmesi / çalıştırılması

Selamlar,

Eskilerden çok değer verdiğim bir hocamın lafını hatırlıyorum. Linux da bir işlemi 5 farklı yöntem ile yapabilirsin ama en güzeli bildiğin halidir demişti. Bende bugün weblogic server’ın otomatik çalışmasını farklı bir yöntem ile anlatacağım

Öncelikle ” su ” komutu ile root haklarına sahip olun ve ” /etc/rc.d/init.d/ ” altına wlcservis adında bir dosya oluşturun ve içerisine aşağıdaki kodu giriniz.

” DOMAIN_HOME satırını kendinize göre düzenlemeniz gerekecektir. Ben test kurulumlarımı /oracle altına yapmaktayım. ”


#!/bin/bash
 . /etc/rc.d/init.d/functions

ORACLE_OWNER="oracle"
 DOMAIN_HOME="/oracle/weblogic/user_projects/domains/user_domain"

case "$1" in
 start)
 if ps ef | grep -v grep|grep startWebLogic.sh
 then
 echo "Weblogic server çalışıyor.";exit 0
 else
 echo "Weblogic Servisi Başlıyor";/bin/su - $ORACLE_OWNER -c "/usr/bin/nohup $DOMAIN_HOME/bin/startWebLogic.sh
 /oracle/weblogic/logs/weblogic_$(date +%Y%m%d).log &"
 fi
 ;;
 stop)

echo -n $"Weblogic server kapatılıyor:"
 /bin/su - $ORACLE_OWNER -c "$DOMAIN_HOME/bin/stopWebLogic.sh"
 echo "OK"
 ;;
 *)
 echo $"Usage: $0 {start|stop}"
 esac

Şimdi servis ekleme işlemini yapalım.
# chmod +x /etc/init.d/wlcservis
# chkconfig --add wlcservis
# chkconfig --list
weblogic  0:off   1:off   2:off   3:on    4:on    5:on    6:off

Aşağıdaki şekilde servisi başlatabilir yada durdurabilirsiniz.

Service Wlcservis start|stop

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/classes/class-tielabs-filters.php on line 340

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/classes/class-tielabs-filters.php on line 340

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/functions/media-functions.php on line 114

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/classes/class-tielabs-filters.php on line 340

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/functions/media-functions.php on line 114

Bugra Parlayan

I use this blog in my spare time to jot down thoughts and share my professional experiences. It’s my personal space to unwind and reflect. Feel free to share or reuse anything you find helpful here — just a small thank you is more than enough :) You can reach me at: bugra[@]bugraparlayan.com.tr

Related Articles


Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/classes/class-tielabs-filters.php on line 340

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/functions/media-functions.php on line 114

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/classes/class-tielabs-filters.php on line 340

Notice: Trying to access array offset on value of type bool in /home/wwwbugra/public_html/wp-content/themes/jannah/framework/functions/media-functions.php on line 114
Back to top button
Close