Linux系统下的控制服务(sshd服务认证及安全优化认证及登录信息的添加)

基本知识点
1.服务与应用的区别
服务service:是系统初始化进程对服务进行相应的控制,无图形
应用application:可以直接对图形进行直接操作
2.

systemd   #####系统初始化进程
pstree    #####x显示系统中的进程树

3.进程控制命令ssh -------> sshd client------>server

systemctl  ##服务控制命令
systemctl status sshd   ##查看服务状态,inative(不可用),active(可用)
systemctl start sshd ##开启服务
systemctl  stop sshd ##关闭服务
systemctl restart sshd ##重启服务
systemctl reload sshd ##重新加载服务配置
systemctl enable sshd ##设定服务开机启动
systemctl disable sshd ##设定服务开机不启动
systemctl list-units ##列出已经开启服务当前状态
systemctl list-unit-files ##列出所有服务开机启动的状态
systemctl list-dependencies ##列出服务的依赖
systemctl set-default multi-user.target ##设定系统启动级别为多用户模式(无图形)
systemctl set-default graphical.target ##设定系统启动级别为图形模式
systemctl status sshd   ##查看服务状态,inative(不可用),active(可用)

在这里插入图片描述

systemctl  stop sshd ##关闭服务

在这里插入图片描述

systemctl disable sshd ##设定服务开机不启动

在这里插入图片描述

systemctl enable sshd ##设定服务开机启动

在这里插入图片描述

systemctl list-units ##列出已经开启服务当前状态

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值