weblogic後台啟動

來源:互聯網
上載者:User

標籤:weblogic後台啟動

最近發現一個問題正常情況下,使用telnet或SSH登陸linux後,使用./startWeblogic.sh在使用者推出登陸後,weblogic也會停掉,這是因為wls進程依賴於telnet進程,解決方案有二:
1:切換到csh,鍵入命令 nohup ./startWeblogic.sh &
2: 切換到csh, ./startWeblogic.sh 啟動後ctrl+z, 輸入bg,進入後台模式
修改startWeblogic.sh 添加
JAVA_OPTIONS=-Djava.awt.headless=true可以是wls在linux上輸出圖片
java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
原因如下

java 代碼

 

  1. The Sun AWT classes on Unix and Linux have a dependence on the X Window System: when you use the classes, they expect to load X client libraries and be able to talk to an X display server. This makes sense if your client has a GUI... unfortunately, it‘s required even if your client uses AWT but does not have a GUI. For example, you need access to an X server to use the java.awt.BufferedImage class.  

  2.   

  3. Access to an X display server means a few things:  

  4.   

  5.     * An X display server is running somewhere.  

  6.     * The environment in which you run Java includes an environment variable DISPLAY identifying how to reach the server.  

  7.     * There are no security settings in the server to prevent your client from opening a connection.  

  8.   

  9. In general, if you‘re running your program from a terminal within the X Window System, all these things are true and the program just works. If you can run other X applications, like xterm or xclock, you should be able to run your Java AWT application.  

  10.   

  11. In non-graphical environments, such as a servlet engine, your program may not know how to find or connect to an X display server. A common solution here is to run a special non-display version of the X display server, Xvfb, and set DISPLAY to point to it.  

  12.   

  13. New information forJDK1.4: JDK1.4 evidently includes a new property that will allow the AWT to run in a headless (without a display) environment. This setting is supposed to solve the problem: java.awt.headless=true  

weblogic後台啟動

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.