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