[GH-ISSUE #2197] 在腾讯云服务器centos7上,添加service运行启动不了 #1752

Closed
opened 2026-05-05 13:07:36 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @alair074 on GitHub (Jan 18, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2197

报错内容如下,网上找了下无果,个人觉得是不是网卡的问题。

● frps.service - Frp Server Service
   Loaded: loaded (/usr/lib/systemd/system/frps.service; disabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2021-01-18 09:50:18 CST; 3s ago
  Process: 29012 ExecStart=/usr/bin/frps -c /etc/frp/frps.ini (code=exited, status=1/FAILURE)
 Main PID: 29012 (code=exited, status=1/FAILURE)

Jan 18 09:50:18 VM-0-17-centos systemd[1]: frps.service: main process exited, code=exited, status=1/FAILURE
Jan 18 09:50:18 VM-0-17-centos systemd[1]: Unit frps.service entered failed state.
Jan 18 09:50:18 VM-0-17-centos systemd[1]: frps.service failed.

配置文件是使用frp安装包里带的,也修改了相应的路径配置,命令运行可以成功,但是用systemd不可以

Originally created by @alair074 on GitHub (Jan 18, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2197 报错内容如下,网上找了下无果,个人觉得是不是网卡的问题。 ```shell ● frps.service - Frp Server Service Loaded: loaded (/usr/lib/systemd/system/frps.service; disabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2021-01-18 09:50:18 CST; 3s ago Process: 29012 ExecStart=/usr/bin/frps -c /etc/frp/frps.ini (code=exited, status=1/FAILURE) Main PID: 29012 (code=exited, status=1/FAILURE) Jan 18 09:50:18 VM-0-17-centos systemd[1]: frps.service: main process exited, code=exited, status=1/FAILURE Jan 18 09:50:18 VM-0-17-centos systemd[1]: Unit frps.service entered failed state. Jan 18 09:50:18 VM-0-17-centos systemd[1]: frps.service failed. ``` 配置文件是使用frp安装包里带的,也修改了相应的路径配置,命令运行可以成功,但是用systemd不可以
gitea-mirror 2026-05-05 13:07:36 -06:00
Author
Owner

@xiaobaozi233 commented on GitHub (Jan 25, 2021):

你是不是下错版本了。。。amd64下成arm64了?

<!-- gh-comment-id:766481975 --> @xiaobaozi233 commented on GitHub (Jan 25, 2021): 你是不是下错版本了。。。amd64下成arm64了?
Author
Owner

@alair074 commented on GitHub (Jan 25, 2021):

你是不是下错版本了。。。amd64下成arm64了?

是amd64的

<!-- gh-comment-id:766487370 --> @alair074 commented on GitHub (Jan 25, 2021): > 你是不是下错版本了。。。amd64下成arm64了? 是amd64的
Author
Owner

@alair074 commented on GitHub (Jan 25, 2021):

你是不是下错版本了。。。amd64下成arm64了?

是amd64的

客户端可以使用systemd管理,服务端不行

<!-- gh-comment-id:766487603 --> @alair074 commented on GitHub (Jan 25, 2021): > > 你是不是下错版本了。。。amd64下成arm64了? > > 是amd64的 客户端可以使用systemd管理,服务端不行
Author
Owner

@xiaobaozi233 commented on GitHub (Jan 25, 2021):

那我只能建议你检查一下systemd用户是不是写的有问题了...

<!-- gh-comment-id:766491803 --> @xiaobaozi233 commented on GitHub (Jan 25, 2021): 那我只能建议你检查一下systemd用户是不是写的有问题了...
Author
Owner

@BoneAsh commented on GitHub (Feb 5, 2021):

是用户的问题,默认是nobody,可以改成有权限的用户,如root,本人腾讯云centos8,亲测成功 @alair074 ,你也可以试试

<!-- gh-comment-id:773882225 --> @BoneAsh commented on GitHub (Feb 5, 2021): 是用户的问题,默认是nobody,可以改成有权限的用户,如root,本人腾讯云centos8,亲测成功 @alair074 ,你也可以试试
Author
Owner

@ghost commented on GitHub (Feb 28, 2021):

端口占用了吧

<!-- gh-comment-id:787437413 --> @ghost commented on GitHub (Feb 28, 2021): 端口占用了吧
Author
Owner

@github-actions[bot] commented on GitHub (Apr 15, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:819936280 --> @github-actions[bot] commented on GitHub (Apr 15, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Author
Owner

@magellan-99 commented on GitHub (May 2, 2023):

我遇到了相同的错误,不过我的vps在搬瓦工上面,如果端口换为8080就行能正确启动,端口如果是80就会和楼主报同样的错误,请问大家如何破?使用的用户是root

<!-- gh-comment-id:1532262408 --> @magellan-99 commented on GitHub (May 2, 2023): 我遇到了相同的错误,不过我的vps在搬瓦工上面,如果端口换为8080就行能正确启动,端口如果是80就会和楼主报同样的错误,请问大家如何破?使用的用户是root
Author
Owner

@magellan-99 commented on GitHub (May 2, 2023):

我的frps.ini文件
[common]
bind_port = 7000
vhost_http_port = 8080
token = *****

<!-- gh-comment-id:1532271633 --> @magellan-99 commented on GitHub (May 2, 2023): 我的frps.ini文件 [common] bind_port = 7000 vhost_http_port = 8080 token = *****
Author
Owner

@magellan-99 commented on GitHub (May 2, 2023):

vps上面都虚拟的cpu也不知道我下载的frp版本对不对:wget https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_linux_amd64.tar.gz

<!-- gh-comment-id:1532272892 --> @magellan-99 commented on GitHub (May 2, 2023): vps上面都虚拟的cpu也不知道我下载的frp版本对不对:wget https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_linux_amd64.tar.gz
Author
Owner

@1509cxt commented on GitHub (Dec 6, 2023):

端口占用了吧

太谢谢了!!

<!-- gh-comment-id:1843603320 --> @1509cxt commented on GitHub (Dec 6, 2023): > 端口占用了吧 太谢谢了!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1752
No description provided.