标签 profile 下的文章

了解 Bash Shell 环境初始化流程的最好的办法是查看 man bash, 中间有部分专门描述 Bash Shell 相关的环境配置文件.如下:

FILES
       /bin/bash
              The bash executable
       /etc/profile
              The systemwide initialization file, executed for login shells
       /etc/bash.bashrc
              The systemwide per-interactive-shell startup file
       /etc/bash.bash.logout
              The systemwide login shell cleanup file, executed when a login shell exits
       ~/.bash_profile
              The personal initialization file, executed for login shells
       ~/.bashrc
              The individual per-interactive-shell startup file
       ~/.bash_logout
              The individual login shell cleanup file, executed when a login shell exits
       ~/.inputrc
              Individual readline initialization file

我们看到 bash man page 中提到 login shells的概念, 我们先来了解下, 什么是 login shells? 什么是 no login shells.

- 阅读剩余部分 -

最新版本的 JDk 下载地址 https://www.oracle.com/technetwork/java/javase/downloads/index.html, 才发现, JDK已经12.0.2版本了, 我们用的大多数环境还是 JDK 8.
根据自己的环境下载对应的操作系统版本, 官方同时发布的有基于arm的,Linux x86/x86_64,Mac OS X x64, Solaris SPARC, Windows x86/x86_64.我们下载基于Linux x64的版本,https://download.oracle.com/otn/java/jdk/8u221-b11/230deb18db3e4014bb8e3e8324f81b43/jdk-8u221-linux-x64.tar.gz

安装

tar xf jdk-8u221-linux-x64.tar.gz -C /opt

一般将JDK安装到 /opt 或者 /usr/local 皆可.

- 阅读剩余部分 -