要在Linux上关闭compton,您可以通过以下方法之一来实现:
方法1:使用systemctl命令
sudo systemctl stop compton
sudo systemctl disable compton
方法2:使用killall命令
pgrep compton
记下输出的PID。
3. 输入以下命令以杀死compton进程(将<PID>
替换为实际的PID):
sudo kill <PID>
<PID>
替换为实际的PID):sudo chkconfig --del compton
这样,compton服务就会关闭,不会在后台运行。如果需要重新启用compton,可以使用上述方法1中的systemctl start compton
和systemctl enable compton
命令。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:怎样在Linux上配置compton