跳转到主要内容

Docker 部署(推荐)

使用 Docker 部署 NPS 服务端或 NPC 客户端

先拉取镜像:

docker pull yisier1/nps

启动容器,请把 <本机conf目录> 替换为实际路径(例如 /root/nps/conf):

docker run -d \
  --restart=always \
  --name nps \
  --net=host \
  -v <本机conf目录>:/conf \
  -v /etc/localtime:/etc/localtime:ro \
  yisier1/nps

先拉取镜像:

docker pull yisier1/npc

启动容器,请把 <> 内的值替换为实际配置:

docker run -d \
  --restart=always \
  --name <自定义名称> \
  --net=host \
  yisier1/npc \
  -server=<服务端IP:端口> \
  -vkey=<客户端验证密钥>

镜像主页:NPS | NPC 。