(주)누리웨어

화상연동/Web,APP 구축및서비스/LMS/평생교육/학점은행/기업교육/연수관리/설문구축/

Linux user jboss .bash_profile Sample

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

umask 022

#환경변수
JAVA_HOME=/app/jdk/jdk1.7.0_80
JBOSS_HOME=/app/was/EAP-6.4.0
DOMAINS_HOME=/app/was/domains/
HTTPD_HOME=/app/web/apache2
PATH=.:$HTTPD_HOME/bin:$JAVA_HOME/bin:$PATH

#환경변수 적용
export JAVA_HOME JBOSS_HOME PATH
export JENKINS_HOME=/app/jenkins

export LANG=ko_KR.utf8
export EDITOR=vi
export HISTFILE=$HOME/.bash_history
export TMP=/tmp
export TMPDIR=/tmp
PS1=whoami@hostname‘:$PWD> ‘

#alias 로 바로 가기기능
alias jboss=’cd ${JBOSS_HOME}’
alias domains=’cd ${DOMAINS_HOME}’
alias lmsroot=’cd ${DOMAINS_HOME}/lmsRoot/lms’
alias logroot=’tail -100f ${DOMAINS_HOME}/lmsRoot/lms/log/server/server.log’
alias srcl=’cd /app/src/lms.war’
alias ll=’ls -alF’

alias abin=’cd /app/web/apache2/bin’

댓글 남기기