On this page
starship + fish
解决 nvm, node 不识别
方法 1:
方法 2(未尝试):
pnpm 不识别
执行 pnpm setup
pnpm 命令补全
pnpm completion fish > ~/.config/fish/completions/pnpm.fish
OpenVPN
开机启动
sudo vim /usr/lib/systemd/system/openvpn.service
修改 Type 和 ExecStart,如下:
[Unit]
Description=OpenVPN service
After=network.target
[Service]
Type=simple
RemainAfterExit=yes
ExecStart= /usr/sbin/openvpn --config /etc/openvpn/VPNConfigBJ.ovpn
WorkingDirectory=/etc/openvpn
[Install]
WantedBy=multi-user.target
报错
#cipher AES-256-CBC
算法替换:
data-ciphers AES-256-GCM:AES-128-GCM:AES-256-CBC # 添加 AES-256-CBC 以兼容旧服务端
data-ciphers-fallback AES-256-CBC
acme
https://github.com/acmesh-official/acme.sh
安装
- 安装: https://github.com/acmesh-official/acme.sh/wiki/How-to-install
- 自动更新:
./acme.sh --upgrade --auto-upgrade - 更换 ca 服务器:
./acme.sh --set-default-ca --server letsencrypt
验证域名
CloudFlare 的 dns 验证: https://github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_cf
生成证书
acme.sh --issue --dns dns_cf -d llweb.top -d '*.llweb.top'
安装证书
acme.sh --install-cert -d llweb.top \
--key-file /etc/nginx/ca/key.pem \
--fullchain-file /etc/nginx/ca/cert.pem \
--reloadcmd "service nginx force-reload"