46 Star 129 Fork 13

荒野無燈 / phicomm-n1-issue

 / 详情

修改frpc.ini后无法启动frp

Done
Opened this issue  
2019-05-06 21:47

What was the cause of the issue?

修改/etc/frpc.ini后

Steps to reproduce

ssh root登录,修改/etc/frpc.ini配置文件,再启动frpc无法启动

Error information

在启动管理页启动frp后,frp页显示frpc stoped。实际也是没有运行。

配置文件如下


# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
server_addr=139.196.***.***
server_port=7000
# if you want to connect frps by http proxy or socks5 proxy, you can set http_proxy here or in global environment variables
# it only works when protocol is tcp
# http_proxy = http://user:passwd@192.168.1.128:8080
# http_proxy = socks5://user:passwd@192.168.1.128:1080
# console or real logFile path like ./frpc.log
log_file=/var/log/frpc.log
# trace, debug, info, warn, error
log_level=info
log_max_days=1
# for authentication
token=*****
# set admin address for control frpc's action by http api such as reload
admin_addr=127.0.0.1
admin_port=7400
admin_user=admin
admin_passwd=admin
# connections will be established in advance, default value is zero
pool_count=5
# if tcp stream multiplexing is used, default is true, it must be same with frps
tcp_mux=true
# your proxy name will be changed to {user}.{proxy}
user=n1
# decide if exit program when first login failed, otherwise continuous relogin to frps
# default is true
login_fail_exit=false
# communication protocol used to connect to server
# now it supports tcp and kcp, default is tcp
protocol=tcp
# specify a dns server, so frpc will use this instead of default one
# dns_server = 8.8.8.8
# proxy names you want to start divided by ','
# default is empty, means all proxies
# start = ssh,dns
# heartbeat configure, it's not recommended to modify the default value
# the default value of heartbeat_interval is 10 and heartbeat_timeout is 90
heartbeat_interval=10
heartbeat_timeout=90

# 'ssh' is the unique proxy name
# if user in [common] section is not empty, it will be changed to {user}.{proxy} such as 'your_name.ssh'
[ssh]
# tcp | udp | http | https | stcp | xtcp, default is tcp
type=tcp
local_ip=127.0.0.1
local_port=22
# true or false, if true, messages between frps and frpc will be encrypted, default is false
use_encryption=false
# if true, message will be compressed
use_compression=true
# remote port listen by frps
#remote_port=6001

[dashboard_http]
# tcp | udp | http | https | stcp | xtcp, default is tcp
type=http
local_ip=127.0.0.1
local_port=80
use_encryption=false
use_compression=true
remote_port=28080

[tr_web_ui]
type=http
local_ip=127.0.0.1
local_port=9091
use_encryption=false
use_compression=true
remote_port=9091


Comments (2)

zorro created任务
zorro changed description
Expand operation logs

手动执行 /usr/local/apps/frp/frpc -c /etc/frpc.ini 输出什么。

zorro changed description
custom_domains and subdomain should set at least one of them

谢谢灯大,懂了

荒野無燈 changed issue state from 待办的 to 已完成
荒野無燈 added
 
question
label
荒野無燈 added
 
not bug
label
荒野無燈 added
 
wontfix
label

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
877150 8ox86 1578934623
1
https://gitee.com/8ox86/phicomm-n1-issue.git
git@gitee.com:8ox86/phicomm-n1-issue.git
8ox86
phicomm-n1-issue
phicomm-n1-issue

Search