人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動(dòng)態(tài)

Linux中chkconfig命令打開(kāi)或關(guān)閉系統(tǒng)服務(wù)的使用教程

發(fā)布日期:2022-01-14 08:41 | 文章來(lái)源:CSDN

chkconfig提供了一個(gè)維護(hù)/etc/rc[0~6] d 文件夾的命令行工具,它減輕了系統(tǒng)直接管理這些文件夾中的符號(hào)連接的負(fù)擔(dān)。chkconfig主要包括5個(gè)原始功能:為系統(tǒng)管理增加新的服務(wù)、為系統(tǒng)管理移除服務(wù)、列出單簽服務(wù)的啟動(dòng)信息、改變服務(wù)的啟動(dòng)信息和檢查特殊服務(wù)的啟動(dòng)狀態(tài)。當(dāng)單獨(dú)運(yùn)行chkconfig命令而不加任何參數(shù)時(shí),他將顯示服務(wù)的使用信息。

必要參數(shù)
--add 開(kāi)啟指定的服務(wù)程序
--del 關(guān)閉指定的服務(wù)程序
--list 列出chkconfig所知道的所有服務(wù)

選擇參數(shù)
--level<代號(hào)> 設(shè)置服務(wù)程序的等級(jí)代號(hào),它是一串0~7的數(shù)字,如“-level35”代表指定運(yùn)行等級(jí)3和5
--help 顯示幫助信息
--version 顯示版本信息

用法1

復(fù)制代碼
代碼如下:

[root@localhost www]# chkconfig --list #查看系統(tǒng)程序列表
[root@localhost www]# chkconfig httpd on #將httpd加入開(kāi)機(jī)啟動(dòng)
[root@localhost www]# chkconfig httpd off #關(guān)閉httpd開(kāi)機(jī)啟動(dòng)

用法2

復(fù)制代碼
代碼如下:

[root@localhost tank]# chkconfig --add nginx #添加nginx啟動(dòng)腳本為chkconfig管理的一個(gè)服務(wù)
[root@localhost tank]# chkconfig --del nginx #刪除chkconfig管理的的nginx啟動(dòng)服務(wù)

實(shí)例:
安裝cent os 64位 后,默認(rèn)帶了很不多不必要的服務(wù),用以下命令列出:

復(fù)制代碼
代碼如下:

chkconfig --list | grep :on

cups 打印服務(wù) yum-updatesd 常在繁忙的時(shí)候占用大量CPU和內(nèi)存 pcscd 智能卡,比如SD讀卡器 hidd 和 bluetooth 藍(lán)牙 cpuspeed 智能調(diào)節(jié)CPU,筆記本用 firstboot 第一次安裝完成后的引導(dǎo)設(shè)置 gpm 鼠標(biāo)復(fù)制粘貼

復(fù)制代碼
代碼如下:

chkconfig cups off
chkconfig yum-updatesd off
chkconfig pcscd off
chkconfig hidd off
chkconfig bluetooth off
chkconfig cpuspeed off
chkconfig firstboot off
chkconfig gpm off

以下的內(nèi)容來(lái)源于網(wǎng)絡(luò),未考證功用

復(fù)制代碼
代碼如下:

chkconfig rhnsd off
chkconfig anacron off
chkconfig arptables_jf off
chkconfig autofs off
chkconfig openibd off
chkconfig messagebus off
chkconfig rawdevices off
chkconfig canna off
chkconfig atd off
chkconfig iiim off
chkconfig pcmcia off
chkconfig haldaemon off
chkconfig iptables off
chkconfig mdmonitor off
chkconfig hpoj off
#chkconfig nfslock off
chkconfig acpid off
chkconfig sendmail off
chkconfig cups off
chkconfig isdn off
chkconfig irqbalance off
chkconfig microcode_ctl off
chkconfig cups-config-daemon off
chkconfig ip6tables off

其他: 關(guān)閉nfs相關(guān)服務(wù) 關(guān)閉rpc相關(guān)服務(wù)
關(guān)閉
復(fù)制代碼
代碼如下:
SELinux vi /etc/selinux/config

版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實(shí)時(shí)開(kāi)通

自選配置、實(shí)時(shí)開(kāi)通

免備案

全球線(xiàn)路精選!

全天候客戶(hù)服務(wù)

7x24全年不間斷在線(xiàn)

專(zhuān)屬顧問(wèn)服務(wù)

1對(duì)1客戶(hù)咨詢(xún)顧問(wèn)

在線(xiàn)
客服

在線(xiàn)客服:7*24小時(shí)在線(xiàn)

客服
熱線(xiàn)

400-630-3752
7*24小時(shí)客服服務(wù)熱線(xiàn)

關(guān)注
微信

關(guān)注官方微信
頂部