博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Mac中如何添加环境变量
阅读量:4659 次
发布时间:2019-06-09

本文共 583 字,大约阅读时间需要 1 分钟。

转载自:

======Mac中如何添加环境变量======

=====方法一=====
sudo vi /etc/paths
来编辑Paths,将环境变量添加到paths中。 VIM 是一个编辑器,另外还有几个,如:Pico,Emacs.
Hint:输入环境变量时,不用一个一个的输入,只要拖动文件夹到Terminal里就可以了。
=====方法二=====
- Create the file /etc/paths.d/mysql like this: \\ sudo touch /etc/paths.d/mysql
- Edit the file: \\ sudo vim /etc/paths.d/mysql
- Put the path inside the file: \\ /usr/local/mysql/bin
出处:http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables
据说,这样可以自己生成新的文件,不用把变量全都放到Paths一个文件里,方便管理。我试验过了,两个都可以。

转载于:https://www.cnblogs.com/yang3wei/archive/2012/02/11/2739932.html

你可能感兴趣的文章
网页如何实现下载功能
查看>>
IT男专用表白程序
查看>>
读《大道至简》第六章感想
查看>>
ef linq 中判断实体中是否包含某集合
查看>>
章三 链表
查看>>
Solution for Concurrent number of AOS' for this application exceeds the licensed number
查看>>
CSE 3100 Systems Programming
查看>>
IntelliJ IDEA 的Project structure说明
查看>>
Java Security(JCE基本概念)
查看>>
创建 PSO
查看>>
JasperReport报表设计4
查看>>
项目活动定义 概述
查看>>
团队冲刺04
查看>>
我的Python分析成长之路8
查看>>
泛型在三层中的应用
查看>>
SharePoint2010 -- 管理配置文件同步
查看>>
.Net MVC3中取得当前区域的名字(Area name)
查看>>
获得屏幕像素以及像素密度
查看>>
int与string转换
查看>>
adb命令 判断锁屏
查看>>