cd /etc/profile.d/

创建一个sh文件

vi dotnetpath.sh

内容如下:

export PATH=$PATH:/opt/dotnet

 

保存,重启,这就有了一个永久的环境变量

相关文章:

  • 2021-05-30
  • 2021-11-22
  • 2021-07-20
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
相关资源
相似解决方案