具体操作如下: 1、下载jdk安装包到服务器 2、解压 tar -zxvf jdk-8u131-linux-x64.tar.gz3、配置环境变量 3.1、vi ~/.bash_profile 3.2、在.bash_profile文件中填入如下语句: export PATH export JAVA_H ...
分类:
编程语言 时间:
2018-10-19 16:43:11
阅读次数:
484
# Linux Environment 1. `/etc/profile`为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。并从/etc/profile.d目录的配置文件中搜集shell的设置 2. `/etc/bashrc`为每一个运行bash shell的用户执行此文件。当bash ...
分类:
系统相关 时间:
2018-10-16 17:36:42
阅读次数:
205
10 个方便的 Bash 别名 1、 你有几次遇到需要解压 .tar 文件但无法记住所需的确切参数?别名可以帮助你!只需将以下内容添加到 .bash_profile 中,然后使用 untar FileName 解压缩任何 .tar 文件。 alias untar='tar -zxvf ' 2、 想要 ...
分类:
系统相关 时间:
2018-10-11 11:26:40
阅读次数:
174
1.安装Homebrew 2.安装pyenv 3.在 .bash_profile 文件中添加 4.在终端中更新输入 5.安装3.X版本python 6.安装完成后进行更新 7.查看已安装版本 8.切换python版本 9.确认python版本 ...
分类:
编程语言 时间:
2018-10-04 13:45:04
阅读次数:
186
1、添加环境变量 打开终端,输入 open .bash_profile 然后,你会看到如下: 然后,编辑文本,export PATH="你要添加的路径" 最后在执行:source ~/.bash_profile ...
分类:
系统相关 时间:
2018-10-01 15:34:21
阅读次数:
177
处理办法:使用stty命令修改。 stty命令语法 办法一: 输入命令: 办法二: 把stty erase ^? 添加到.bash_profile中。 ...
分类:
系统相关 时间:
2018-09-23 00:16:25
阅读次数:
273
alias 定义的变量 .bash_profile 添加 if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi alias dir-event='cd /opt/source/gitsource/' alias dir-admin="cd /opt ...
分类:
系统相关 时间:
2018-09-22 00:51:13
阅读次数:
523
找到文件.bash_profilefind/-n.bash_profile编辑文件把jdk安装的bin目录放到最后面3.让配置文件马上生效source/root/.bash_profile
分类:
系统相关 时间:
2018-09-20 18:47:13
阅读次数:
1559
一、安装dircolors git clone https://github.com/seebi/dircolors-solarized.git cd dircolors-solarized/ mv dircolors.ansi-dark ~/.dircolors vim .bash_profile ...
分类:
系统相关 时间:
2018-09-19 14:49:38
阅读次数:
174
官网下载了node的.pkg文件安装node,安装好后,在mac终端下输入npm -v 和 node -v均提示 command not found,参考了网上的方法,终于得解 第一步:创建.bash_profile文件,~表示在~目录下,.表示隐藏文件,打开终端,输入命令如下 第二步:打开.bas ...
分类:
系统相关 时间:
2018-09-17 17:47:53
阅读次数:
204