1、cd ~
2、vi .bash_profile
3、添加环境变量
export LOOK_SPIDER_RUNMODE=prod
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export LOOK_SPIDER_RUNMODE=prod
PATH=$PATH:$HOME/bin
export PATH
4、测试环境变量
source .bash_profile
echo $LOOK_SPIDER_RUNMODE