centos7 frp内网穿透
生活随笔
收集整理的這篇文章主要介紹了
centos7 frp内网穿透
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
git下載地址
中文文檔參考
frp
- 1. 域名,nginx問題
- 2. 安裝frp服務器到centos7
- 3. 安裝frp 客戶端
- 4. 將frp設置成后臺服務
1. 域名,nginx問題
微信小程序需要https接口加密的協議。使用nginx配置https。 由于微信只支持子級域名。申請證書時需要填的是子級域名。申請ssl證書
阿里云ssl詳細配置
阿里云控制臺配置子級域名解析。
nginx 配置
2. 安裝frp服務器到centos7
配置
3. 安裝frp 客戶端
見第二步圖,解壓即用,用來連接centos上的frp
配置
[common] server_addr = 88.88.88.88 # 這里亂寫的,換成你域名的ip # 與linux上的frp相連接 server_port = 7000# 內網穿透名稱 [web] # 協議為http(即80端口) type = http # 內部映射的IP local_ip =127.0.0.1 # 內部映射為8080端口 local_port = 8080 token = bitqian666 # 和sever對應 # 遠程端口不用設置,只能沿用frps下vhost_http_port # 映射域名為 http://wd.frp.kioye.cn #subdomain = wd # 或者直接指定全域名(你只需要將域名解析到服務器上) # custom_domains = blog.kioye.cn custom_domains = frp.demo.com[ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 60004. 將frp設置成后臺服務
啟動systemctl start frps
開機自啟動systemctl enable frps
frp后臺服務
總結
以上是生活随笔為你收集整理的centos7 frp内网穿透的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 各种排序的时间复杂度比较
- 下一篇: eeprom的wp 引脚_EEPROM存