nps icon indicating copy to clipboard operation
nps copied to clipboard

在rocky Linux9.1上npc install 启动异常

Open bystart opened this issue 2 years ago • 2 comments

[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

bystart avatar Feb 18 '23 06:02 bystart

这个估计需要进行适配,调整安装路径来解决

EyoungShieh1992 avatar Feb 21 '23 07:02 EyoungShieh1992

[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

Jas0n0ss avatar Sep 27 '23 07:09 Jas0n0ss