2015-10-16

[SOLVED]Linux environment variables

############################################
export PS1="\u@\h \w# "
export HISTTIMEFORMAT='%F %T  '
export EDITOR=nano
#TERM=xterm; export TERM
############################################
#GLOBAL PATH VARIABLES:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/jdk1.8.0_25/bin:/opt/script:/opt/lampp/bin:/usr/local/openresty/nginx/sbin/:/usr/local/bin
export PATH

#JAVA CLASSPATH:
CLASSPATH=:/opt/jdk1.8.0_25/jre/lib:/opt/jdk1.8.0_25/jre/lib/ext:.
export CLASSPATH

JAVA_HOME=/opt/jdk1.8.0_25
export JAVA_HOME

JRE_HOME=/opt/jdk1.8.0_25/jre
export JRE_HOME

#CATALINA_BASE
CATALINA_BASE=/opt/apache-tomcat-7.0.57
export CATALINA_BASE

#CATALINA_HOME
CATALINA_HOME=/opt/apache-tomcat-7.0.57
export CATALINA_HOME

#CATALINA_TMPDIR
CATALINA_TMPDIR=/opt/apache-tomcat-7.0.57/temp
export CATALINA_TMPDIR
###########################################
alias netstat-listen='netstat -ntlup | egrep "Proto|LISTEN" | sort -n'
alias ps-nginx='ps aux | egrep "USER|nginx"'

No comments:

Post a Comment