•        OS : openKylin-0.7.5-x86_64
  •        blog : 师万物

systemctl status 查看服务的运行状态

root@sww:~# systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-12-24 12:34:55 CST; 10h ago
       Docs: man:sshd(8)
             man:sshd_config(5)
    Process: 696 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
   Main PID: 740 (sshd)
      Tasks: 1 (limit: 9436)
     Memory: 4.4M
     CGroup: /system.slice/ssh.service
             └─740 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups

12月 24 12:34:55 sww systemd[1]: Starting OpenBSD Secure Shell server...
12月 24 12:34:55 sww sshd[740]: Server listening on 0.0.0.0 port 22.
12月 24 12:34:55 sww sshd[740]: Server listening on :: port 22.
12月 24 12:34:55 sww systemd[1]: Started OpenBSD Secure Shell server.
12月 24 12:34:59 sww sshd[907]: Accepted password for sww from 192.168.3.4 port 51011 
ssh2
12月 24 12:34:59 sww sshd[907]: pam_unix(sshd:session): session opened for user sww by
 (uid=0)

学习资源


感恩曾经帮助过 师万物 的同学们。