上一页 1 2 3 4 5 6 ··· 20 下一页
  2025年1月19日
摘要: 为btrfs文件系统启用swap 1:首先挂载一个btrfs卷到/swap mount -o subvol=@swap /dev/disk/by-uuid/6cf264fc-e15b-456f-aaa1-ce7f194e1599 /swap 2:创建swapfile truncate -s 0 /s 阅读全文
posted @ 2025-01-19 18:13 项希盛 阅读(134) 评论(0) 推荐(0)
  2025年1月7日
摘要: 首先下载23988个域名 https://raw.githubusercontent.com/Loyalsoldier/cn-blocked-domain/release/domains.txt 然后编写node代码,修改爱快的IP和Cookie const fs = require('fs'); 阅读全文
posted @ 2025-01-07 01:45 项希盛 阅读(129) 评论(0) 推荐(0)
  2024年11月13日
摘要: 服务端部署 用nono编辑ipsec配置文件 nano /etc/ipsec.conf 替换成下面的内容 config setup charondebug="ike 2, knl 2, cfg 2" conn ikev2-vpn auto=add compress=yes type=tunnel k 阅读全文
posted @ 2024-11-13 08:44 项希盛 阅读(256) 评论(0) 推荐(0)
  2024年11月11日
摘要: 查看源 root@debian:~# cat /etc/apt/sources.list #deb cdrom:[Debian GNU/Linux 12.7.0 _Bookworm_ - Official amd64 NETINST with firmware 20240831-10:38]/ bo 阅读全文
posted @ 2024-11-11 11:49 项希盛 阅读(185) 评论(0) 推荐(0)
  2024年11月3日
摘要: 一、部署服务器 1:安装WireGuard apt install wireguard 2:生成配置文件 cd到/etc/wireguard #!/bin/bash # Convert IP address to integer ip_to_int() { local ip=$1 local a b 阅读全文
posted @ 2024-11-03 16:56 项希盛 阅读(276) 评论(0) 推荐(0)
  2024年10月31日
摘要: 已测试可以成功向qq邮箱、icloud和gmail发邮件,除了gmail会进垃圾邮箱,其他都正常收信 下面是linux的搭建步骤 wget -O /root/go1.23.2.linux-amd64.tar.gz https://golang.google.cn/dl/go1.23.2.linux- 阅读全文
posted @ 2024-10-31 10:58 项希盛 阅读(63) 评论(0) 推荐(0)
  2024年10月26日
摘要: 华为S5735S交换机配置QinQ 1:首先把交换机上的第24口接到PVE虚拟化服务器(运行4个客户的4台软路由) 2:然后把交换机上的第1、2、3、4口分别接到4个不同客户房间里的PoE交换机或直接到AP里 下面是交换机的配置指令 # vlan batch 101 to 104 # interfa 阅读全文
posted @ 2024-10-26 01:07 项希盛 阅读(671) 评论(0) 推荐(0)
  2024年10月25日
摘要: 在Linux云VPS中再分小鸡出来(docker版) 在docker创建ubuntu22.04系统容器 1:创建网络 docker network create --driver bridge --subnet=10.247.88.0/24 net88 docker network ls 2:建立容 阅读全文
posted @ 2024-10-25 19:22 项希盛 阅读(44) 评论(0) 推荐(0)
  2024年10月19日
摘要: 将下列代码保存到/bin/ddns_portmap.sh #!/bin/bash # 检查参数 if [ "$#" -ne 2 ]; then echo "Usage: $0 <domain> <local_port1:remote_port1,local_port2:remote_port2,.. 阅读全文
posted @ 2024-10-19 12:13 项希盛 阅读(168) 评论(0) 推荐(0)
  2024年8月16日
摘要: 保存为git-diff-copy.bat @echo off REM [Windows批处理]比对Git两个分支之间的差异,把有改动的文件复制到指定目录 setlocal enabledelayedexpansion REM 1:设置被复制的git项目文件夹(尾部要加"\") set copy_fr 阅读全文
posted @ 2024-08-16 12:04 项希盛 阅读(71) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 20 下一页