nps
nps copied to clipboard
在rocky Linux9.1上npc install 启动异常
[root@rocky-kvm ~]# npc status 2023/02/18 01:00:42.423 [I] [npc.go:231] the version of client is 0.26.10, the core version of client is 0.26.0 2023/02/18 01:00:42.424 [E] [control.go:94] Config file conf/npc.conf loading error open conf/npc.conf: no such file or directory
这个估计需要进行适配,调整安装路径来解决
[root@rocky-kvm ~]# npc status 2023/02/18 01:00:42.423 [I] [npc.go:231] the version of client is 0.26.10, the core version of client is 0.26.0 2023/02/18 01:00:42.424 [E] [control.go:94] Config file conf/npc.conf loading error open conf/npc.conf: no such file or directory
You should define your conf path in /etc/systemd/system/Npc.service
, add -config=<conf path>
vim /etc/systemd/system/Npc.service
...
ExecStart=/opt/npc/npc "-debug=true" "-config=/opt/npc/conf/npc.conf"
...
systemctl daemon-reload && systemctl restart Npc && systemctl status Npc
# monitor the log if anything wrong
tail -f /var/log/npc.log