`
czpae86
  • 浏览: 713569 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

CentOS设置开机自动启动某服务

    博客分类:
  • UNIX
 
阅读更多

这里以启动sshd服务为例:

查看sshd是否已经是系统服务:

 

# chkconfig --list |grep sshd

会显示:

 sshd    0:off 1:off 2:off 3:off 4:off 5:off 6:off

 

使用如下命令设置sshd服务自动启动:

# chkconfig --level 5 sshd on

 

 再次查看:


如图显示,证明设置成功了!

 

重启系统后,直接用SecureCRT工具访问成功了!

  • 大小: 2 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics