在我安装OpenSuse 13.2后,我发现即使连接盒子的ssh连接成功,我也找不到正在运行的服务(使用chkconfig命令)
为什么?
我最后熟悉的Suse版本是11.4
旧的init系统已被SystemD取代, systemctl作为该系统的主要接口。
尝试
systemctl list-units sshd.service
(通过使用systemctl list-units | grep sshfind实际的服务systemctl list-units | grep ssh ,顺便说一句,不需要root)
Archemar@tatouin:~/> systemctl list-units sshd.service UNIT LOAD ACTIVE SUB DESCRIPTION sshd.service loaded active running OpenSSH Daemon LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, ie generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.