以PhantomJs为例:

1)vim /etc/profile
2)在文件的最后一行,添加安装路径path语句:(注意路径是phantomjs的安装路径)
export PATH=${PATH}:/usr/local/src/phantomjs/bin/
3)保存修改后的文件
:wq 
4)使用命令使环境变量生效
source /etc/profile

相关文章:

  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2021-08-21
  • 2021-11-28
  • 2021-09-29
  • 2022-01-14
  • 2021-09-07
  • 2021-08-27
相关资源
相似解决方案