# 拉取nps镜像
docker pull yisier1/nps:latest
#创建nps挂载文件目录(自己随意设置)
mkdir -p /root/nps/conf
#从github上下载拉取conf文件信息
【只需要CONF,修改NPS文件】https://github.com/yisier/nps.git
#上传conf文件的内容到刚创建好的挂载目录
docker run -d --restart=always --name nps --net=host -v /root/nps/conf:/conf yisier1/nps:latest
#将正在运行的容器设为自启动
docker update --restart=always <CONTAINER ID>
npc客户端使用
1.进入github releases安装页面下载对应版本的客户端并解压
2.windows系统
注册服务(开机启动,守护进程)
用 nps 自带的命令,很方便的注册到服务中,使用管理员身份运行cmd
npc.exe install -server=1.2.3.4:8024 -vkey=客户端的密钥
常用命令
# 启动 npc start # 停止 npc stop # 卸载 npc uninstall