1)vim /etc/profile
2)在文件的最后一行,添加安装路径path语句:(注意路径是phantomjs的安装路径)
export PATH=${PATH}:/usr/local/src/phantomjs/bin/
3)保存修改后的文件
:wq
4)使用命令使环境变量生效
source /etc/profile
linux 添加环境变量
时间:2018-01-03 19:09:59
收藏:0
阅读:224
原文:https://www.cnblogs.com/maybach/p/8185079.html
评论(0)