Ubuntu关闭cups打印机服务
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu关闭cups打印机服务
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在/etc/init.d下新建一個(gè)腳本文件,例如:myInit.sh,文件的內(nèi)容如下:
#!/bin/bash ### BEGIN INIT INFO # # Provides: location_server # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: ss-server initscript # Description: This file should be used to construct scripts to be placed in /etc/init.d. # ### END INIT INFO sudo systemctl stop cups上面的腳本文件中的注釋也要有,不能省去。
然后再:
sudo chmod 755 myInit.sh賦予權(quán)限
sudo update-rc.d myinit.sh defaults 90更新
這樣再啟動(dòng)時(shí),就會(huì)自動(dòng)執(zhí)行這個(gè)腳本文件關(guān)閉cups服務(wù),關(guān)閉631端口。
原文: https://blog.csdn.net/weixin_43171083/article/details/86837130
總結(jié)
以上是生活随笔為你收集整理的Ubuntu关闭cups打印机服务的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 硕士研究生培养方案及课程大纲
- 下一篇: Ubuntu 10.10升级显卡驱动后开