export为shell脚本添加指定环境变量的方法

 

1
2
3
4
5
#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/jdk/bin:/usr/local/mysql/bin
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/locajdk/bin:/usr/local/mysql/bin
export PATH
posted @ 2023-02-22 10:47  zhuguoqing  阅读(22)  评论(0编辑  收藏  举报