武士 发表于 2021-11-23 21:59:45

centos 安装宝塔面板,开启frpc https服务

本帖最后由 武士 于 2022-4-13 12:19 编辑

frps端,停止宝塔nginx

# pkill -9 nginx

修改frps.ini
/usr/local/frps/frps.ini
权限644 默认



bind_port = 9980
kcp_bind_port = 9980
dashboard_port = 9680
dashboard_user =
dashboard_pwd =
vhost_http_port = 80
vhost_https_port = 443
#log_file = ./frps.log
#log_level = info
#log_max_days = 3
token = mz2poQJO7
#max_pool_count = 50
#tcp_mux = true
subdomain_host = 5vc.cn


重启frps
frps restart

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



客户端安装宝塔,建站,解析域名,先开启http代理,能正常访问
申请宝塔ssl
然后修改frpc.ini


frpc.ini 配置文件



server_addr = 43.128.13.146
server_port = 9980
token = mz2poQJO7YHHr0md



type = http
local_port = 6030
custom_domains = www.qinzitree.com







type = https
custom_domains = www.qinzitree.com
local_ip = 127.0.0.1
local_port = 6040
remote_port = 443 # 远程端口要为 443,注意打开防火墙

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

页: [1]
查看完整版本: centos 安装宝塔面板,开启frpc https服务