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

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

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
CentOS7中安裝Snapd具體步驟

CentOS 7中如何安裝Snapd?本篇文章為大家分享一下CentOS 7安裝Snapd具體步驟,有需要的小伙伴可以參考一下。

1、首先安裝COPR插件和EPEL,通過(guò)添加epel存儲(chǔ)庫(kù)并安裝copr yum插件來(lái)啟動(dòng)安裝,運(yùn)行如下命令:

sudo yum install epel-release



sudo yum install yum-plugin-copr

2、然后添加repo:

sudo yum copr enable ngompa/snapcore-el7

3、添加存儲(chǔ)庫(kù)后,安裝snapd軟件包,運(yùn)行以下命令:

sudo yum -y install snapd

4、等待安裝完成后啟用snapd socket:

sudo systemctl enable --now snapd.socket

5、限制需要從/snap到/var/lib/snapd/snap下的/snap或符號(hào)鏈接下的snaps,為它創(chuàng)建一個(gè)符號(hào)鏈接,如下命令:

sudo ln -s /var/lib/snapd/snap /snap

做到這里,Snapd已經(jīng)安裝完成了。

附:snap用法及參數(shù)

snap --help







應(yīng)用選項(xiàng):



--version——打印版本并退出



幫助選項(xiàng):



-h, --help——顯示此幫助消息



可用的命令:



abort——中止待定更改



ack——Adds an assertion to the system



alias——Sets up a manual alias



aliases——Lists aliases in the system



buy——Buys a snap



changes——List system changes



connect——Connects a plug to a slot



disable——Disables a snap in the system



disconnect——Disconnects a plug from a slot



download——Downloads the given snap



enable——Enables a snap in the system



find——Finds packages to install (aliases: search)



get——Prints configuration options



help——幫助



info——show detailed information about a snap



install——Installs a snap to the system



interface——Lists snap interfaces



interfaces——Lists interfaces in the system



known——Shows known assertions of the provided type



list——List installed snaps



login——Authenticates on snapd and the store



logout——Log out of the store



logs——Retrieve logs of services



pack——pack the given target dir as a snap



prefer——Prefer aliases from a snap and disable conflicts



refresh——Refreshes a snap in the system



remove——Removes a snap from the system



restart——Restart services



revert——Reverts the given snap to the previous state



run——Run the given snap command



services——Query the status of services



set——Changes configuration options



start——Start services



stop——Stop services



switch——Switches snap to a different channel



tasks——List a change's tasks (aliases: change) try——Tests a snap in the system unalias——Unalias a manual alias or an entire snap version ——Shows version details watch——Watch a change in progress whoami——Prints the email the user is logged in with. 

文章標(biāo)題:CentOS7中安裝Snapd具體步驟
分享地址:http://www.5511xx.com/article/dpcidde.html