Ubuntu Server安装常用软件

开发环境:

 

// 添加JDK
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_101
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
# 单版本JDk设置
# export PATH=${JAVA_HOME}/bin:$PATH
# 多版本JDK update-alternatives必须设置
export PATH=$PATH:${JAVA_HOME}/bin:${JRE_HOME}/bin

// 使用 --install 添加可选项  
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_101/bin/java 300    
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_101/bin/javac 300    
sudo update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/jdk1.8.0_101/bin/javah 300    
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8.0_101/bin/jar 300

// 使用 --install 添加可选项  
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_79/bin/java 255    
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_79/bin/javac 255        
sudo update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/jdk1.7.0_79/bin/javah 255    
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.7.0_79/bin/jar 255

# 测试发现重启生效
JDK安装-多版本支持:    Ubuntu make 及多版本JDK安装与切换
Mysql root用户远程连接配置:    Ubuntu MySQL允许远程连接访问
Oracle数据库安装:

参照链接:

How to Install Oracle 12c on Ubuntu 15.04 

http://www.techienote.com/install-oracle-12c-on-ubuntu/

How to install Oracle 11gR2 on Ubuntu 14.04 LTS?

http://unix.stackexchange.com/questions/79367/how-to-install-oracle-11gr2-on-ubuntu-server-13-04

How to automate Oracle DB installation (like a 'hands-free' install)?

转载于:https://my.oschina.net/u/2285351/blog/725082

你可能感兴趣的:(Ubuntu Server安装常用软件)