mac OS系统跟linux系统一样也是将用户的全局环境变量保存在.bash_profile配置文件中,只是mac OS默认没有此文件。

1、创建.bash_profile文件

vi ~/.bash_profile

2、添加环境变量

#!/bin/bash
  
LANG=zh_CN.UTF-8
export LANG

3、编译

source .bash_profile

  

  

相关文章:

  • 2021-05-04
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-01-16
  • 2021-11-21
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-11-11
  • 2022-12-23
  • 2021-09-02
  • 2021-09-06
相关资源
相似解决方案