Openresty 之 入门 2022年4月15日 | 运维 Openresty 入门 hello world server { listen 80; server_name _; location / { default_type text/html; content_by_lua ' local ip = ngx.…… 阅读全文
Let's Encrypt(Certbot) On Ubuntu18.04 2022年4月12日 | 运维 使用Let’s Encrypt获取免费的SSL证书 安装certbot apt install certbot 校验域名所有权 客户在申请 Let’s Encrypt 证书的时候,需要校验域名的所有权,证明操作者有权利为该域名申请证书,目前支持三种验证方式: dns-01:给域名添加一个 DNS TXT 记录。 http-01:在域名对应的 Web 服务器下放置一个 HTTP well-known URL 资源文件。 tls-sni-01:在域名对应的 Web 服务器下放置一个 HTTPS well-known URL 资源文件。 申请通配符证书,只能使用 dns-01 的方式。 单个域名证书申请 certbot certonly --standalone --preferred-challenges http --agree-tos --email clay_chen@qq.…… 阅读全文
Lvm使用 2022年4月6日 | 运维 LVM(Logical Volume Management) Components of LVM 1.Physical Volumes 2.Volume Groups 3.…… 阅读全文
Dig命令 2022年1月18日 | 运维 dig查询域名解析 获取根域名的NS服务器地址 dig ns baidu.com ;; ANSWER SECTION: baidu.com. 3600 IN NS dns.…… 阅读全文
hugo发布到NGINX 2021年12月17日 | 运维 hugo发布到nginx流程 所有文章页面顶部全部配置为draft: false title: "新的文章" date: 2021-12-17T15:06:23+08:00 draft: false # 这里 hugo打包成静态文件放在public目录下 hugo --baseUrl="/" 将public目录下的文件全部上传到nginx配置的vhost路径下 附nginx配置文件 server { listen 80; server_name btiwork.…… 阅读全文