export LD_LIBRARY_PATH=/opt/lansecs_scan/lib:$LD_LIBRARY_PATH
source /etc/profile
# vim ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/python3/bin
export PATH
永久在配置文件中 :PATH=$PATH:/usr/local/php/bin 为php环境
执行:source /etc/profile
查看:echo $PATH
临时:export PATH=$PATH:/usr/local/php/bin 为php环境