# https
CentOS 7 中安装 Snapd 具体步骤
1、首先安装 COPR 插件和 EPEL,通过添加 epel 存储库并安装 copr yum 插件来启动安装,运行如下命令:
sudo yum install epel-release
1
sudo yum install yum-plugin-copr
1
2、然后添加 repo:
sudo yum copr enable ngompa/snapcore-el7
1
3、添加存储库后,安装 snapd 软件包,运行以下命令:
sudo yum -y install snapd
1
4、等待安装完成后启用 snapd socket:
sudo systemctl enable --now snapd.socket
1
5、限制需要从/snap 到/var/lib/snapd/snap 下的/snap 或符号链接下的 snaps,为它创建一个符号链接,如下命令:
sudo ln -s /var/lib/snapd/snap /snap
1
6.成功标示
Deploying certificate
Successfully deployed certificate for zhoubichuan.com to /etc/nginx/conf.d/default.conf
Your existing certificate has been successfully renewed, and the new certificate has been installed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
附:snap 用法及参数
snap --help
#应用选项:
--version——打印版本并退出
#帮助选项:
-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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47