obsidian/笔记文件/2.笔记/certbot网站证书过期.md
2025-03-26 00:02:56 +08:00

40 lines
931 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#杂七杂八常识
网站证书过期,一般是输入指令,进行证书续期
``` shell
certbot renew
```
会出现报错
![[Pasted image 20240423172319.png]]
修改指令,会提示 输入关联的域名输入目前的个人博客域名pan.isscuss.xyz 即可然后会提示ipv4和ipv6被占用
``` shell
certbot certonly --standalone
```
![[Pasted image 20240423173942.png]]
报错是因为开了nginx代理占用了对应的端口先指令关闭 nginx 代理服务
``` shell
service nginx stop
```
![[Pasted image 20240423174301.png]]
再重复以上,申请证书指令,输入域名,回车,稍等片刻,就会提示 `Congratulations!` 申请成功了;
然后,再输入指令,重新开启 nginx 代理服务 即可;
``` shell
service nginx restart
```
![[Pasted image 20240423174334.png]]
重新打开网页,证书正常
![[Pasted image 20240423174559.png]]