728x90
Ubuntu 에서 전체 환경 변수를 설정 하기 위해선 etc/bash.bashrc 에 아래와 같이 추가한다
Ubuntu 16.04
# MAVEN HOME
export M3_HOME=/usr/share/maven
# DEV HOME
export DEV_HOME=/home/g480/Dev
# JAVA HOME
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
# JRE HOME
export JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
# Eclipse Home
export ECLIPSE_HOME=$DEV_HOME/Tools/eclipse
# IntelliJ Home
export INTELLIJ_HOME=$DEV_HOME/Tools/IntelliJ
# Tomcat8 Home
export CATALINA_HOME=$DEV_HOME/Tools/tomcat8
# NODE_HOME
export NODE_VERSION=v6.11.0
export NODE_PATH=$NVM_DIR/versions/node/$NODE_VERSION/lib/node_modules
# path
export PATH=$PATH:$M3_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$JRE_HOME/bin
export PATH=$PATH:$ECLIPSE_HOME
export PATH=$PATH:$INTELLIJ_HOME/bin
export PATH=$PATH:$NODE_PATH
export PATH=$PATH:$CATALINA_HOME/bin
Ubuntu 14.04
# proxy Setting
export http_proxy=http://proxy:port
export https_proxy=http://proxy:port
export ftp_proxy=http://proxy:port
export socks_proxy=http://proxy:port
export no_proxy=localhost,127.0.0.0/8,127.0.1.1,127.0.1.1*,127.0.0.1,local.home
export HTTP_PROXY=proxy:port
export HTTPS_PROXY=proxy:port
export FTP_PROXY=proxy:port
export socks_proxy=proxy:port
export NO_PROXY=$no_porxy
# MAVEN HOME
export M2_HOME=/usr/lib/maven/maven3
# JAVA HOME
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
# JRE HOME
export JRE_HOME=/usr/lib/jvm/jdk1.7.0/jre
# Eclipse Home
export ECLIPSE_HOME=/Development/eclipse
# WebStorm Home
export WEBSTORM_HOME=/Development/WebStorm
# NODE_PATH
export NODE_PATH=/usr/local/lib/node_modules
# Tomcat8_PATH
export CATALINA_HOME=/Development/Was/tomcat8
# path
export PATH=$PATH:$M2_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$JRE_HOME/bin
export PATH=$PATH:$ECLIPSE_HOME
export PATH=$PATH:$WEBSTORM_HOME/bin
export PATH=$PATH:$NODE_PATH
export PATH=$PATH:$CATALINA_HOME/bin
# set java ssl error
export MAVEN_OPTS="-Djavax.net.ssl.trustStore=/CERT/trust.jks"
# hangul Setting
LANG=ko_KR.UTF-8
LANGUAGE=ko_KR.UTF-8
LC_ALL=ko_KR.UTF-8
'개발' 카테고리의 다른 글
LINUX LOCALE 설정 방법 Linux + Unix (0) | 2020.05.27 |
---|---|
nvm, node 설치 (0) | 2020.05.26 |
WireMock Introduce~! (0) | 2020.05.26 |
Swagger With Spring Java (0) | 2020.05.26 |
Ubuntu Oracle Java 설치 방법 (0) | 2020.05.26 |