26 01 2016
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’
Linux 유용한 명령어 rename 과 mv Eclipse 로 Maven 웹프로젝트 구성 (Server jetty)