vi ~/.bash_profile,打开配置文件并增加环境变量增加的环境变量:export TIME_STYLE=’+%Y/%m/%d %H:%M:%S’。source ~/.bash_profile,执行该命令使环境变更生效。