一、方式:

    禁用命令:sudo update-rc.d ssh disable  

    启用命令:sudo update-rc.d ssh enable

  二、chkconfig的方式:

    1、安装:apt-get install chkconfig

    2、运行:chkconfig --list 查看状态。

     运行:chkconfig --level 2345 ssh on

     (说明:Debain中使用chkconfig时,发现不行,才使用方式一实现。)

相关文章:

  • 2022-12-23
  • 2021-06-26
  • 2021-09-17
  • 2021-05-21
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2022-01-08
  • 2022-01-08
  • 2021-04-20
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案