由于项目中要用到gradle命令,可是没有配置环境变量。这里记录一下解决过程。 过程例如以下: 1. 启动终端Terminal 2. 进入当前用户的home文件夹 输入cd ~ 3. 创建.bash_profile(最好先运行第四部。看看有没有,假设有了就不用创建了) 输入touch .bash_p
分类:
系统相关 时间:
2016-03-02 19:55:48
阅读次数:
373
在linuxshell中不显示路径显示为-bash-4.1#用起来很不方便。如何改为显示路径的shell呢?步骤如下:vim~/.bash_profile(不用管.bash_profile这个文件有几个,自己新建一个也是可以的)在最后加上exportPS1=‘[\u@\h\W]\$‘然后执行source~/.bash_profile这样shell就可以显示路径了。
分类:
系统相关 时间:
2016-02-26 15:33:06
阅读次数:
187
1. 找到adb本地路径 adb放在platform-tools 我的路径是(/Users/android-sdk-macosx/platform-tools) 2. 打开终端,进入到sdk文件夹中 touch .bash_profile open -e .bash_profile 新建一个.bas
分类:
移动开发 时间:
2016-02-24 15:27:06
阅读次数:
180
2015.12.28/Mon *************摘要************** 1.用户登陆流程 /etc/profile /etc/profile.d/* /etc/bashrc ~/.bash_profile ~/.bashrc 2.vim编辑器 命令模式\编辑模式\退出模式 3.软件
分类:
数据库 时间:
2016-02-21 15:42:16
阅读次数:
261
Mac配置环境变量,以ant和maven为例 1.编辑 .bash_profile文件 cd vi .bash_profile 编辑内容为 ------------------------- ANT_HOME=/Users/a58/dev/apache-ant-1.9.6/ MAVEN_HOME=/
分类:
系统相关 时间:
2016-02-20 11:54:44
阅读次数:
201
错误:[oracle@ocmb11.2.0]$sqlplus/assysdbaError6initializingSQL*PlusSP2-0667:Messagefilesp1<lang>.msbnotfoundSP2-0750:YoumayneedtosetORACLE_HOMEtoyourOraclesoftwaredirectory原因:[oracle@ocmb~]$cat.bash_profile#.bash_profile#Getthealiasesandfunctionsi..
分类:
其他好文 时间:
2016-02-19 01:47:31
阅读次数:
1982
/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置./etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取.~/.bash
分类:
其他好文 时间:
2016-02-18 11:41:46
阅读次数:
161
mac 一般使用bash作为默认shell Mac系统的环境变量,加载顺序为:/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc当然/etc/profile和/etc/paths是系统级别的,系统启动就
分类:
系统相关 时间:
2016-02-13 12:16:54
阅读次数:
247
全局:对所有用户都生效; /etc/profile /etc/profile.d/*.sh 用户个人:仅对当前用户有效; ~/.bash_profile 功用: 1、用于定义环境变量; 2、运行命令或脚本;
分类:
其他好文 时间:
2016-02-01 22:14:13
阅读次数:
161
yum install ccache mkdir /home/linghegu/.bin cd vi ~/.bash_profile ln -s /usr/bin/ccache gcc ln -s /usr/bin/ccache g++ vim ~/.bash_profile PATH=/home/
分类:
系统相关 时间:
2016-02-01 18:40:51
阅读次数:
382