蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 系统管理


    

蓝森林 http://www.lslnet.com 2006年8月18日 15:18


请教各位大侠.

我在sco unix 5.0.5下装tomcat ,已经设置好了.profile文件,但
echo  $JAVA_HOME时,总是显示 什么也没有.看看tomcat的log,
也说 tomcat.sh: which: not found
Cannot find JAVA. Please set your PATH.

还有,我用nantian用户登录时,报-sh: -o: bad option(s)
请问是什么意思?

不知道如何该配置环境.
.profile文件如下,

#        @(#) profile 68.1 98/01/20
#
#        Copyright (C) 1990-1998 The Santa Cruz Operation, Inc.
#                All Rights Reserved.
#        The information in this file is provided for the exclusive use of
#        the licensees of The Santa Cruz Operation, Inc.  Such users have the
#        right to use, modify, and incorporate this code into other products
#        for purposes authorized by the license agreement provided they include
#        this notice and the associated copyright notice with any such product.
#        The information in this file is provided "AS IS" without warranty.
#
# .profile        -- Commands executed by a login Korn shell
#

PATH=$PATH:$HOME/bin:.                        # set command search path
export PATH

if [ -z "$LOGNAME" ]; then
        LOGNAME=`logname`                # name of user who logged in
        export LOGNAME
fi

MAIL=/usr/spool/mail/$LOGNAME                # mailbox location
export MAIL

if [ -z "$PWD" ]; then
        PWD=$HOME                        # assumes initial cwd is HOME
        export PWD
fi

if [ -f $HOME/.kshrc -a -r $HOME/.kshrc ]; then
        ENV=$HOME/.kshrc                # set ENV if there is an rc file
        export ENV
fi

# use default system file creation mask (umask)

eval `tset -m scoansi:${TERM:-scoansi} -m :\?${TERM:-scoansi} -r -s -Q`

# If job control is enabled, set the suspend character to ^Z (control-z):
case $- in
*m*)        stty susp '^z'
        ;;
esac

set -o ignoreeof                        # don't let control-d logout

case $LOGNAME in                        # include command number in prompt
root)        PS1="!# " ;;
*)        PS1="!$ " ;;
esac
export PS1

/usr/bin/prwarn                        # issue a warning if password due to expire
#for tomcat
TOMCAT_HOME=/usr/nantian/tomcat323
PATH=$PATH:TOMCAT_HOME/bin

# for dynamic linked libraries
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/nantian/hostcomm/lib
export LD_LIBRARY_PATH

#for java
JAVA_HOME=/usr/java2
PATH=$PATH:$JAVA_HOME/bin
Classpath=/usr/java2/lib/tools.jar:
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export JAVA_HOME CLASSPATH PATH

#for Oracle
ORACLE_HOME=/oracle/app/oracle/product/7.3.4
CLASSPATH=$CLASSPATH:/usr/nantian/oraclejdbc901
PATH=$PATH:$ORACLE_HOME/bin
ORACLE_SID=ATMORA
export CLASSPATH PATH ORACLE_HOME ORACLE_SID



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com