Fedora 16下让指定服务开机自动运行


Fedora 16下让指定服务开机自动运行

需要使用/bin/systemctl指令。

例如:

$ sudo systemctl enable sshd.service

如此可以让sshd服务开机时自动运行。


另外,启动和关闭服务的命令也渐渐由原来的service转向systemctl.

例如:

$ sudo systemctl start sshd.service

$ sudo systemctl stop sshd.service

相关内容