随笔分类 -  openwrt

摘要:用了openwrt拨号作为主路由,有服务器A连接在了网络,服务app1部署在A上。在外网时已经配置通过域名类似:a.com访问。在家庭内网时当然希望访问a.com直接就走内网不再走公网。假设openwrt的ip是:192.168.0.1, 假设服务器A的ip是192.168.0.2。 在openwr 阅读全文
posted @ 2024-10-12 18:04 熊先生不开玩笑 阅读(1587) 评论(0) 推荐(0) 编辑
摘要:安装ssh opkg update # openssh-keygen 可以用来生产密钥 opkg install openssh-keygen # 连接其他服务器 opkg install openssh-client # 生成密钥,可以指定文件名,注意算法,gitee有不支持SHA1算法。git 阅读全文
posted @ 2022-05-04 21:19 熊先生不开玩笑 阅读(548) 评论(0) 推荐(0) 编辑
摘要:转载自:https://www.ohyee.cc/post/note_go_read_openwrt_timezone openwrt 运行golang 时候发现打印时间错误。golang读取时区的过程: 读取TZ环境变量 读取/etc/localtime文件 本地时区读取失败,使用 UTC 时间 阅读全文
posted @ 2022-05-02 22:48 熊先生不开玩笑 阅读(729) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示