mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1960] nohup方式启动frps,dashboard无记录 #1560
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Arthur2012 on GitHub (Aug 31, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1960
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.33.0
What operating system and processor architecture are you using (
go env)?ubuntu 14.04.1
Configures you used:
[common]
bind_port = xxx
dashboard_port = yyy
dashboard_user = admin
dashboard_pwd = zzz
token = ***
Steps to reproduce the issue:
Describe the results you received:
traffic in/out are always 0.
Describe the results you expected:
traffic in/out should be real value, not always 0.
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
应该是nohup frps启动方式的原因,但如何解决呢?因为ubuntu 14.04下建立service(systemd)启动失败(CentOS7下是成功的),用非nohup方式启动frps会在SSH断开后frps进程退出。
@HinxVietti commented on GitHub (Sep 2, 2020):
建议检查下log看看客户端是否连接上了服务器, 或者防火墙是否开放.
先直接使用./frps -v ./frps.ini 运营测试OK了再进行操作.
后台运行建议: nohup &配合使用
nohup ./frp -c ./frp.ini &测试OK可以注册到系统服务替代nohup运行.
不介意你传个log一起看看发生了啥 :-)
@Arthur2012 commented on GitHub (Sep 7, 2020):
nohup /usr/bin/frps -c /etc/frp/frps.ini >/dev/null 2>&1 &
后台是运行成功的,frps工作正常,映射的端口工作正常,dashboard能打开,但流量始终是0字节。
services方式如果能成功,不会去用后台方式运行的。
@blizard863 commented on GitHub (Sep 16, 2020):
可以提供更多的日志看下, 目前盲猜也不知道是什么错误。
@github-actions[bot] commented on GitHub (Nov 1, 2020):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
@mxdlzg commented on GitHub (Nov 9, 2020):
我用centos7+service启动也没记录
@github-actions[bot] commented on GitHub (Mar 10, 2021):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.