在linux上运行service https start,响应service command not found

后来google了一下,发现需要将/sbin目录加入环境变量PATH中。

可以在使用的用户目录的.bashrc文件中加入export PATH=$PATH:/sbin/

root用户在目录/root下

maminghao用户在目录/home/maminghao下

相关文章:

  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-11-27
  • 2021-12-30
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2021-10-12
  • 2021-12-17
  • 2022-12-23
  • 2022-03-10
相关资源
相似解决方案