1. 首页 >系统运维 >linux系统 >

linux环境变量设置PATH

首先修改配置文件

vi /etc/profile


在最后加入

export PATH=$PATH:你的路径

保存后

刷新配置

source /etc/profile