- 论坛徽章:
- 0
|
大虾好,我有一个问题请教,hpux装resin服务需要java环境,hpux下自带的有jdk1.2,需要一个非root用户启动resin服务,这个用户的.profile文件怎么修改呢,下面这个不行,大家看错在那里,resin log报错,找不到java
$ vi .profile
".profile" 33 lines, 623 characters
# @(#)B.11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ' hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
JAVA_HOME=/opt/java1.2
export JAVA_HOME
CLASSPATH=/opt/java1.2/lib:/opt/java1.2/jre/lib
export CLASSPATH
PATH=/usr/bin:/usr/local/bin:/opt/java1.2/jre/bin
export PATH
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
~ |
|