Press "Enter" to skip to content

fedora 服务管理(含简易优化脚本)

Fedora 20上面管理服务使用systemctl工具。以下是几条范例:

sudo systemctl list-unit-files    列出所有服务
sudo systemctl stop bluetooth.service    #停止蓝牙服务
sudo systemctl disable bluetooth.service    #禁用蓝牙服务

此外,Fedora还提供了一个图形化管理服务的工具,名为system-config-services

sudo yum install system-config-services

安装完成以后即可以在程序菜单中找到“服务”,然后在图形界面中管理服务。

以下是一些不常用的服务,可以禁止,对于加速fedora系统是很有帮助的

sudo systemctl stop bluetooth.service    #停止蓝牙服务
sudo systemctl disable bluetooth.service
sudo systemctl disable crond.service    #禁用定时计划任务
sudo systemctl disable atd.service    #禁用一次性计划任务
sudo systemctl disable cups.path    #禁用跟打印机相关的东西
sudo systemctl status cups.path
sudo systemctl stop cups.path
sudo systemctl status cups.path
sudo systemctl stop cups.socket
sudo systemctl disable cups.socket
sudo systemctl status cups.service
sudo systemctl disable cups.service
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service    #禁用防火墙
sudo systemctl stop vmtoolsd.service       #禁用VMware服务
sudo systemctl disable vmtoolsd.service
sudo systemctl stop multipathd.service     #多链路,基本无用
sudo systemctl disable multipathd.service
Leave a Reply

Your email address will not be published. Required fields are marked *