Skip to content

Instantly share code, notes, and snippets.

@netnr
Created Oct 28, 2020
Embed
What would you like to do?
环境变量
# 全局变量
vi /etc/profile # 编辑
PATH=$PATH:/package/app/node/bin
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL # 在该行前面加
source /etc/profile # 生效
# 局部变量
vi ~/.bash_profile # 编辑
alias nodejs=/package/app/node/bin
source ~/.bash_profile # 生效
echo $PATH # 查看
# help
https://blog.csdn.net/IT_10/article/details/102881802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment