mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1915] 服务端设置vhost_http_port和vhost_https_port后服务无法启动 #1519
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#1519
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 @yilong877 on GitHub (Jul 25, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1915
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.0What operating system and processor architecture are you using (
go env)?Centos7Configures you used:
Steps to reproduce the issue:
Describe the results you received:
服务无法启动
Describe the results you expected:
服务正常启动
Additional information you deem important (e.g. issue happens only occasionally):
如果我将
vhost_http_port = 80和vhost_https_port = 443注释掉,服务就能跑起来了。Can you point out what caused this issue (optional)
我在centos7 和 debian 9中都试过了,都是一样的问题,不知道是我操作有问题,还是别的原因导致的
@fatedier commented on GitHub (Jul 26, 2020):
检查 frps 的日志看又什么报错信息。
@yilong877 commented on GitHub (Jul 26, 2020):
未设置vhost_http_port和vhost_https_port
frps服务正常启动,frps.log显示如下:
设置vhost_http_port和vhost_https_port后
frps服务无法启动,frps.log也未有报错信息,但是会一直监听10000端口:
@fatedier commented on GitHub (Jul 26, 2020):
不要使用 systemd,直接使用命令行启动,方便调试。
@yilong877 commented on GitHub (Jul 26, 2020):
未使用systemd,设置
vhost_http_port和vhost_https_port后服务正常启动:
我自己的一些改动
我把
systemd文件夹里的frps.service作了一下改动将
User=nobody注释再用systemd启动的话,服务也是能开启的
非常感谢您的回复,解决了困惑我几天的问题!
@xhminc commented on GitHub (Feb 26, 2021):
终于找到解决方法!!