Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端启动失败 #378

Closed
onehuo opened this issue Jan 22, 2020 · 3 comments
Closed

客户端启动失败 #378

onehuo opened this issue Jan 22, 2020 · 3 comments

Comments

@onehuo
Copy link

onehuo commented Jan 22, 2020

我在openwrt里执行:
./npc install -server=xxx.xxx.xxx.xxx:8024 -vkey=123456
之后执行 npc start
出现以下错误,请问是什么原因
root@OpenWrt:~# npc start 2020/01/22 18:21:09.794 [E] [npc.go:117] Valid actions: ["start" "stop" "restart" "install" "uninstall"] Failed to start nps内网穿透客户端: "service" failed: exec: "service": executable file not found in $PATH

@jinmiaoluo
Copy link

jinmiaoluo commented Jan 22, 2020 via email

@onehuo
Copy link
Author

onehuo commented Jan 22, 2020

当前目录下有npc可执行文件
root@OpenWrt:~# echo $PATH
/usr/sbin:/usr/bin:/sbin:/bin
在/usr/bin下有npc文件
root@OpenWrt:~# find / -name npc
/mnt/loop0/upper/usr/bin/npc
/mnt/loop0/upper/usr/local/bin/npc
/mnt/loop0/upper/root/npc
/overlay/upper/usr/bin/npc
/overlay/upper/usr/local/bin/npc
/overlay/upper/root/npc
/root/npc
/usr/bin/npc
/usr/local/bin/npc

@ffdfgdfg
Copy link
Contributor

使用的service库似乎并不支持busybox作为init,能直接./npc运行的话,建议丢个脚本过去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants