从以下地址下载 Debian 最小化镜像并导入至虚拟机,完成系统安装:
👉 https://kekylin.github.io/debnas-docs/guide/debian-minimal-installation/
配置允许 root
用户登录(可选),并更新系统软件包:
sudo apt update && sudo apt upgrade -y
从 GitHub 项目发布页下载对应架构的客户端压缩包并解压:
👉 https://github.com/yisier/nps/releases
例如:
wget https://github.com/yisier/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz
tar -zxvf linux_amd64_client.tar.gz -C /root/npc
创建启动服务文件:
sudo nano /etc/systemd/system/npc.service
内容如下(请根据实际路径和参数替换):
[Unit]
Description=NPC Client
After=network.target
[Service]
Type=simple
ExecStart=/root/npc/npc -server=124.222.93.39:8024 -vkey=97979775gg -type=tcp
Restart=on-failure
[Install]
WantedBy=multi-user.target
执行以下命令使服务生效并开机启动:
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable npc
sudo systemctl start npc
sudo systemctl status npc
应显示服务为 active (running) 状态,表示配置成功。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有