编辑/etc/sysctl.conf,添加下面内容
net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.default.accept_ra=2
net.ipv6.conf.vmbr0.accept_ra=2
net.ipv6.conf.all.autoconf=1
net.ipv6.conf.default.autoconf=1
net.ipv6.conf.vmbr0.autoconf=1
执行sysctl -p
2、创建LXC容器
进入容器shell
要先换源/etc/apt/source.list
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
查看这个安装docker教程:Debian 12 / Ubuntu 22.04 安装 Docker 以及 Docker Compose 教程 - 烧饼博客
然后安装portainer(参考Docker)
安装npm(nginx-proxy-manager)
1
| docker run -d --name npm --restart always --network host -v /home/docker/npm/data:/data -v /home/docker/npm/letsencrypt:/etc/letsencrypt jc21/nginx-proxy-manager:latest
|
默认端口是81,默认用户密码:admin@example.com changme
改为了admin@qq.co, aosite007008, admin
LTAI5t87HKTEqYxY29qVTjse
UHR57DVL4twERQAIq4tqtX9bXJODCE
000300010011329e1775
listen [::]:21443 ssl;
【PVE8.0保姆级教程(06) IPV6+Nginx Proxy Manager反向代理和转发本地服务】 https://www.bilibili.com/video/BV1VN411x7UN/?share_source=copy_web&vd_source=635462a67c7c18600ca16e3d8c372abe