赞
踩
在编译程序的时候发现速度很慢,查找发现自启动选项太多,cpu占用率越来越高,现在进行查询并修改权限。
top
systemctl list-unit-files
该指令用以下显示出开启的和未开启的程序,所有的均会显示出来
比如查找所有的enabled选项
systemctl list-unit-files |grep enabled
比如查找向日葵的选项
sudo systemctl stop runsunloginclient.service
输入后显示结果如下:
runsunloginclient.service enabled enabled
sudo systemctl status runsunloginclient.service
sudo systemctl stop runsunloginclient.service
sudo systemctl disable runsunloginclient.service
系统显示
Removed /etc/systemd/system/multi-user.target.wants/runsunloginclient.service.
至此,成功的修改了软件系统的自启动权限。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。