Raspberry Pi 4B with OpenWrt
树莓派 4b 搭建 OpenWrt 软路由硬件准备树莓派 4b 主板一块,TF 卡一张,USB转网口一个(推荐绿联,网卡芯片型号亚信 AX88179,如果只是做旁路由,可以不接 USB 网卡) 系统镜像 镜像使用 ImmortalWrt,可以根据自己设备型号进行镜像搜索选择下载。系统镜像比较精简,但是可以在系统镜像的软件包中获取丰富的插件。 镜像默认登录密码为空,默认 ip 地址为 192.168.1.1,直接接电脑,电脑网卡设置为自动获取 ip 地址即可,也可设置为在同一网段的静态 ip。 格式为 squashfs Github 仓库地址。 烧录镜像自行搜索教程。 镜像配置旁路由模式LAN 口配置 网络配置 12345# 假设主路由ip: 192.168.31.1IPv4 地址: 192.168.31.254 # ip地址不要有冲突IPv4 子网掩码: 255.255.255.0IPv4 网关: 192.168.31.1 # 主路由ipDNS 服务器: 192.168.31.1 # 主路由ip 禁用 IPv6 DHCP 配置DHCP...
acme.sh
acme.sh使用教程安装 acme.sh的GitHub地址 acme.sh 安装 12curl https://get.acme.sh | sh -s [email protected] ~/.bashrc 注:email需要替换成自己的邮箱 检查是否安装成功 1acme.sh -h 配置dns使用域名解析商提供的api自动添加txt记录完成验证 详细的api使用方法介绍地址 dns api usage 此处使用阿里云为例 12export Ali_Key="<key>"export Ali_Secret="<secret>" 生成证书1acme.sh --issue --dns dns_ali -d example.com -d *.example.com 安装证书(此处为nginx方式)1234acme.sh --install-cert -d example.com \--key-file /path/to/keyfile/in/nginx/key.pem ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment