欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

tomcat自啟動(dòng)問題 jsvc的 使用

系統(tǒng) 2629 0

http://mail-archives.apache.org/mod_mbox/tomcat-users/200606.mbox/%3C20060617133344.YNGU15153.ibm68aec.bellsouth.net@mail.bellsouth.net%3E

2008-09-22補(bǔ)計(jì):利用以下方法解決了tomcat的開機(jī)自啟動(dòng)問題.


假設(shè)你的java 相關(guān)環(huán)境變量設(shè)置在/etc/profile中

修改/etc/rc.local

在exit 0前加入以下內(nèi)容:

source /etc/profile
$CATALINA_HOME/bin/startup.sh

注:$CATALINA_HOME是tomcat的安裝目錄
            
            
            
              Code
            
            
          
-----------------------------------------------------------------

此文中所提使用jsvc啟動(dòng) Tomcat的癥狀與我目前(2008年9月18至9月21日都在忙于嘗試?yán)胘svc自啟動(dòng)Tomcat的事情,但幾天過去了,還困在此,所遇問題及現(xiàn)象與此帖子所示絲毫不差!)遇到的癥狀完全相同,只是在此帖子中,未提供有效的解決方法。

Message view
? ?
From Warren Pace <wap...@bellsouth.net>
Subject Re: Re: help getting jsvc up and running on sles9 on ibm pseries (power5)
Date Thu, 01 Jan 1970 00:00:00 GMT
            I know this doesn't address the compilation problems but why not run tomcat as a daemon in

a chrooted jail?   

see:  http://www.oreilly.com/catalog/tomcat/chapter/ch06.pdf



> 

> From: Christian Andersson <ca@ofs.no>

> Date: 2006/06/15 Thu AM 06:36:47 EDT

> To: Tomcat Users List <users@tomcat.apache.org>

> Subject: Re: help getting jsvc up and running on sles9 on ibm pseries (power5)

> 

> anyone?

> 

> Christian Andersson wrote:

> > Hi there, I have a small problem that I'. hoping that you can help me solve.

> > 

> > I want to be able to run tomcat on a server that we have available at a

> > hosting firm.

> > 

> > I can get tomcat up and running on it witohut problem, as long as I

> > don't try to use jsvc..  and I need jsvc sicne I don't want to run tomat

> > as root, or manually start tomcat whenever there is a restart of the

> > server, etc..

> > 

> > I've tried compiling the jsvc that comes with tomcat, but no luck, so I

> > downloaded deamons 1.0.1 and tried to get that compiling, and still no

> > luck, after searching/following different hints that I found on the net

> > (I'll ge over those later) I do get jsvc compiled, but I still cannot

> > run it, because it looks like jsvc is compiled as a 32 bit binary and

> > the ibm-java that I have is a 64 bit binary.

> > 

> > anyway here is a list of what I've done (not much)

> > 

> > after downloading and unpacking jsvc I went into

> > daemon-1.0.1/src/native/unix and did a ./configure

> > --with-java=/opt/ibm/java2-ppc64-50

> > 

> > and got the following result..

> > 

> > ----------------------------------------------------------------------

> > *** Current host ***

> > checking build system type... ./support/config.guess: unable to guess

> > system type

> > 

> > This script, last modified 2001-04-20, has failed to recognize

> > the operating system you are using. It is advised that you

> > download the most up to date version of the config scripts from

> > 

> >     ftp://ftp.gnu.org/pub/gnu/config/

> > 

> > If the version you run (./support/config.guess) is already up to date,

> > please

> > send the following data and any information you think might be

> > pertinent to <config-patches@gnu.org> in order to provide the needed

> > information to handle your system.

> > 

> > config.guess timestamp = 2001-04-20

> > 

> > uname -m = ppc64

> > uname -r = 2.6.5-7.252-pseries64

> > uname -s = Linux

> > uname -v = #1 SMP Tue Feb 14 11:11:04 UTC 2006

> > 

> > /usr/bin/uname -p =

> > /bin/uname -X     =

> > 

> > hostinfo               =

> > /bin/universe          =

> > /usr/bin/arch -k       =

> > /bin/arch              = ppc64

> > /usr/bin/oslevel       =

> > /usr/convex/getsysinfo =

> > 

> > UNAME_MACHINE = ppc64

> > UNAME_RELEASE = 2.6.5-7.252-pseries64

> > UNAME_SYSTEM  = Linux

> > UNAME_VERSION = #1 SMP Tue Feb 14 11:11:04 UTC 2006

> > configure: error: cannot guess build type; you must specify one

> > ----------------------------------------------------------------------

> > 

> > after downloading the newest config.guess from

> > http://cvs.savannah.gnu.org/viewcvs/*checkout*/config/config/config.guess

> > (the above specified link leads to this file) and replacing the existing

> > one in  daemon-1.0.1/src/native/unix/support and once more execute

> > configure I get the following...

> > 

> > ----------------------------------------------------------------------

> > *** Current host ***

> > checking build system type... powerpc64-unknown-linux-gnu

> > checking host system type... powerpc64-unknown-linux-gnu

> > checking cached host system type... ok

> > *** C-Language compilation tools ***

> > checking for gcc... gcc

> > checking for C compiler default output file name... a.out

> > checking whether the C compiler works... yes

> > checking whether we are cross compiling... no

> > checking for suffix of executables...

> > checking for suffix of object files... o

> > checking whether we are using the GNU C compiler... yes

> > checking whether gcc accepts -g... yes

> > checking for gcc option to accept ANSI C... none needed

> > checking for ranlib... ranlib

> > *** Host support ***

> > checking C flags dependant on host system type... failed

> > configure: error: Unsupported CPU architecture "powerpc64"

> > ----------------------------------------------------------------------

> > 

> > following information on the net it was suggested that I change the

> > configure script so that it accepts powerpc* instead of powerpc

> > that is from

> > ----------------------------------------------------------------------

> > ...

> >   case $host_cpu in

> >   powerpc)

> >     CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ;;

> > ...

> > ----------------------------------------------------------------------

> > to

> > ----------------------------------------------------------------------

> > ...

> >   case $host_cpu in

> >   powerpc*)

> >     CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ;;

> > ...

> > ----------------------------------------------------------------------

> > 

> > the result:

> > 

> > ----------------------------------------------------------------------

> > ...

> > *** All done ***

> > Now you can issue "make"

> > ----------------------------------------------------------------------

> > 

> > make also succedes, but when running jsvc using the script that comes

> > with apache tomcat (modified to suite my needs ofcourse) no jsvc is

> > running, and in the error log I find the following...

> > 

> > ----------------------------------------------------------------------

> > 12/06/2006 11:58:15 19502 jsvc.exec error: Cannot dynamically link to

> > /opt/ibm/java2-ppc64-50/jre/bin/classic

> > /libjvm.so

> > 12/06/2006 11:58:15 19502 jsvc.exec error:

> > /opt/ibm/java2-ppc64-50/jre/bin/classic/libjvm.so: cannot open sha

> > red object file: No such file or directory

> > 12/06/2006 11:58:15 19501 jsvc.exec error: Service exit with a return

> > value of 1

> > ----------------------------------------------------------------------

> > 

> > and in /opt/ibm/java2-ppc64-50/jre/bin/classic these files exist

> > 

> > -rwxr-xr-x  1 root root 238290 2006-03-10 16:50 libjvm.so

> > 

> > so it should be able to find the file since the user that I'm running

> > this fron is able to find it in the correct location. and can read it.

> > 

> > for me this now looks like jsvc is beeing compiled as a 32bit executable

> > but java is a 64bit executable..

> > 

> > I've tried reading/changing more stuff to get it working, but sofar I

> > have been unable to do so.

> > 

> > /Christian Andersson

> > 

> > 

> > ---------------------------------------------------------------------

> > To start a new topic, e-mail: users@tomcat.apache.org

> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org

> > For additional commands, e-mail: users-help@tomcat.apache.org

> > 

> > 

> 

> ---------------------------------------------------------------------

> To start a new topic, e-mail: users@tomcat.apache.org

> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org

> For additional commands, e-mail: users-help@tomcat.apache.org

> 

> 





---------------------------------------------------------------------

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org

For additional commands, e-mail: users-help@tomcat.apache.org






          
Mime
? View raw message

tomcat自啟動(dòng)問題 jsvc的 使用


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 奇米影视8888狠狠狠狠 | 国产九九免费视频网站 | 久久久一区二区 | 久久人人爱 | 久草手机视频在线 | 国产精品久久人妻无码蜜 | 日韩二区精品 | 操嫩草 | 国产精品2020观看久久 | 亚洲国产精品久久久久网站 | 久久久久成人精品免费播放 | 成人破解版| a久久久久一级毛片护士免费 | 久久三区 | 无码激情做A爰片毛片A片小说 | 亚洲热在线观看 | 国产一区免费 | 欧美亚洲日本 | 久久y| 欧美一级黄视频 | 免费国产一区二区在免费观看 | 欧美成人一区二区三区 | 久久久999| 一区日韩| 免费能直接在线观看黄的视频 | 麻豆国产精品va在线观看不卡 | 欧美日韩中文 | 波多野结衣的一级片 | 二区国产 | 911色_911色sss主站色播 | 欧美日韩在线免费观看 | 免费观看视频网站 | 性做久久久久久免费观看欧美 | 亚洲奇米 | 亚洲一区在线免费 | 欧美日韩成人一区二区 | 欧美一区二区三区精品国产 | 欧美成人激情视频 | 精品国产一区二区在线 | 欧美大片欧美大片 | 欧美三级在线播放 |