< ページ移動: 1 2 >
# chkconfig --list sshd
Note: This output shows SysV services only and does not include nativesystemd services. SysV configuration data might be overridden by nativesystemd configuration.If you want to list systemd services use 'systemctl list-unit-files'.To see services enabled on particular target use'systemctl list-dependencies [target]'.error reading information on service sshd: No such file or directory
# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
# systemctl list-unit-files|grep sshdsshd-keygen.service staticsshd.service enabledsshd@.service staticsshd.socket disabled
# systemctl restart sshd# systemctl status sshd● sshd.service - OpenSSH server daemonLoaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)Active: active (running) since Fri 2019-05-24 10:50:35 JST; 9s agoDocs: man:sshd(8)man:sshd_config(5)Main PID: 27691 (sshd)CGroup: /system.slice/sshd.service└─27691 /usr/sbin/sshd -D