Ubuntu 中的chkconfig 命令

2021-05-24 05:49:43 字數 377 閱讀 7488

在ubuntu中是沒有chkconfig命令的,可以用update-rc.d 來代替。

# update-rc.d sshd defaults          # activate sshd with the default runlevels

# update-rc.d sshd start 20 2 3 4 5 . stop 20 0 1 6 .  # with explicit arguments

# update-rc.d -f sshd remove         # disable sshd for all runlevels

# shutdown -h now (or # poweroff)    # shutdown and halt the system

ubuntu中 在Ubuntu中安裝CMake

前言 具體安裝步驟 注意安裝包解壓後的位置 home book cmake 3.12.4 linux x86 64 安裝包解壓位置 2.1 開啟.bashrc檔案進行配置 gedit bashrc2.2 在末尾新增如下的內容 export path home book cmake 3.12.4 li...

Ubuntu中GNU Make中的「 」擴充套件

srcfiles shell echo txt 1 測試在shell中這個命令會輸出什麼 echo結果輸出 0 1 2 3 4 5 6 7 8 9原來是對大括號中的內容進行了擴充套件。2 知道了大括號 的作用,於是嘗試在makefile中也測試一下 srcfiles shell echo all e...

Ubuntu中的inittab檔案

原來,在ubuntu 6.1之後,開始用upstart替代init,主要指令碼都在 etc event.d下面,預設情況下,沒有 etc inittab檔案。比較困惑,linux的不同distribution之差別咋就那麼大呢?在目錄 etc event.d下,發現檔案rc default,它的內容...