月归档:2016年05月

systemctl

systemd查看开机自启动的程序(相当于chkconfig --list)

ll /etc/systemd/system/multi-user.target.wants/

 

运行一个服务:

systemctl start network.service

关闭网络服务:

systemctl stop network.service

重启网络服务:

systemctl restart network.service

显示一个服务(无论运行与否)的状态:

systemctl status network.service

在开机时启用一个服务:

systemctl en...

继续阅读

发表在 linux | systemctl已关闭评论