Mac/Linux configuration environment variables

Others are not recommended to use .bash_profile directly (usually add user-level environment variables to this file)

This file is in the user and directory

(Note: Linux is .bashrc and Mac is .bash_profile)

For example, add  export PATH=$PATH:/usr/local/nginx/sbin inside

If you want to take effect immediately, execute source .bash_profile

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326985252&siteId=291194637