日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢(xún)
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
詳解AlpineLinux:init系統(tǒng)

Alpine Linux使用的是Gentoo一樣的OpenRCinit系統(tǒng).使用”rc-update”、”rc-status”、”rc-service”、”openrc”等命令可用于管理init系統(tǒng)

在蓋州等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專(zhuān)注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站制作、成都做網(wǎng)站、外貿(mào)營(yíng)銷(xiāo)網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作按需搭建網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),高端網(wǎng)站設(shè)計(jì),成都全網(wǎng)營(yíng)銷(xiāo)推廣,外貿(mào)網(wǎng)站建設(shè),蓋州網(wǎng)站建設(shè)費(fèi)用合理。

rc-update

rc-update主要用于不同運(yùn)行級(jí)增加或者刪除服務(wù)。

rc-update語(yǔ)法格式

Usage: rc-update [options] add [...]
or: rc-update [options] del [...]
or: rc-update [options] [show [...]]

Options: [ asuChqVv ]
-a, --all Process all runlevels
-s, --stack Stack a runlevel instead of a service
-u, --update Force an update of the dependency tree
-h, --help Display this help outputrc-status

-C, --nocolor Disable color output
-V, --version Display software version
-v, --verbose Run verbosely
-q, --quiet Run quietly (repeat to suppress errors)

使用實(shí)例

$ rc-update add docker boot #增加一個(gè)服務(wù)
$ rc-update del docker boot #刪除一個(gè)服務(wù)

rc-status

rc-status 主要用于運(yùn)行級(jí)的狀態(tài)管理。

rc-status語(yǔ)法格式

Usage: rc-status [options] ...
or: rc-status [options] [-a | -c | -l | -r | -s | -u]

Options: [ aclrsuChqVv ]
-a, --all Show services from all run levels
-c, --crashed Show crashed services
-l, --list Show list of run levels
-r, --runlevel Show the name of the current runlevel
-s, --servicelist Show service list
-u, --unused Show services not assigned to any runlevel
-h, --help Display this help output
-C, --nocolor Disable color output
-V, --version Display software version
-v, --verbose Run verbosely
-q, --quiet Run quietly (repeat to suppress errors)

使用實(shí)例

$ rc-status #檢查默認(rèn)運(yùn)行級(jí)別的狀態(tài)
$ rc-status -a #檢查所有運(yùn)行級(jí)別的狀態(tài)

rc-service

rc-service主用于管理服務(wù)的狀態(tài)

rc-service語(yǔ)法格式

Usage: rc-service [options] [-i] ...
or: rc-service [options] -e
or: rc-service [options] -l
or: rc-service [options] -r

Options: [ e:ilr:INChqVv ]
-e, --exists tests if the service exists or not
-i, --ifexists if the service exists then run the command
-I, --ifinactive if the service is inactive then run the command
-N, --ifnotstarted if the service is not started then run the command
-l, --list list all available services
-r, --resolve resolve the service name to an init script
-h, --help Display this help output
-C, --nocolor Disable color output
-V, --version Display software version
-v, --verbose Run verbosely
-q, --quiet Run quietly (repeat to suppress errors)

使用實(shí)例

$ rc-service sshd start #啟動(dòng)一個(gè)服務(wù)。
$ rc-service sshd stop #停止一個(gè)服務(wù)。
$ rc-service sshd restart #重啟一個(gè)服務(wù)。

openrc

openrc主要用于管理不同的運(yùn)行級(jí)。

openrc語(yǔ)法格式

Usage: openrc [options] []

Options: [ a:no:s:SChqVv ]
-n, --no-stop do not stop any services
-o, --override override the next runlevel to change into
when leaving single user or boot runlevels
-s, --service runs the service specified with the rest
of the arguments
-S, --sys output the RC system type, if any
-h, --help Display this help output
-C, --nocolor Disable color output
-V, --version Display software version
-v, --verbose Run verbosely
-q, --quiet Run quietly (repeat to suppress errors)

Alpine Linux可用的運(yùn)行級(jí)

default
sysinit
boot
single
reboot
shutdown

使用實(shí)例

$ openrc single #更改為single運(yùn)行級(jí)

其它指令

$ reboot #重啟系統(tǒng),類(lèi)似于shutdown -r now。
$ halt #關(guān)機(jī),類(lèi)似于shutdown -h now。
$ poweroff #關(guān)機(jī)

新聞標(biāo)題:詳解AlpineLinux:init系統(tǒng)
鏈接地址:http://m.5511xx.com/article/dpphdgi.html