Fedora 16: 服务

来自Shiyin's note
Shen讨论 | 贡献2013年4月18日 (四) 06:00的版本
跳到导航 跳到搜索

服务的启动,停止都通过systemctl来完成

  • 查看包含Network的服务
systemctl | grep Network

得到

sys-devi...et-eth0.device loaded active plugged       82577LC Gigabit Network Connection
NetworkManager.service    loaded active running       Network Manager
network.target            loaded active active        Network
  • 停止
systemctl stop NetworkManager.service
  • 还有status,reload,start等,具体可-h
  • 开机启动
systemctl enable NetworkManager.service
  • systemd-analyze blame

returns a list of various services launched at boot and the time it took to launch them and do their thing in milliseconds.

  • systemd-analyze plot > plot.svg

creates a graphic plot of the latest boot in SVG format.

  • systemctl stop SERVICENAME.service and systemctl disable SERVICENAME.service

stop a running service and disable it at boot respectively.