<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Frps服務端一鍵安裝腳本 參考網址: [https://blog.csdn.net/Inke88/article/details/76677956](https://blog.csdn.net/Inke88/article/details/76677956) ### **注意事項:記得給使用的端口開放防火墻,開放防火墻,開放防火墻** 案例: 放開的端口號:6443、5334、9980 Frps服務端一鍵配置腳本地址:[https://github.com/MvsCode/frps\-onekey](https://github.com/MvsCode/frps-onekey) 腳本有兩個源,國外VPS可以用Github的源,國內的VPS建議使用Aliyun的源,要不可能很慢。本教程使用的就是Aliyun的源 ~~~bash #下載腳本 wget https://code.aliyun.com/MvsCode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh #設置腳本運行權限 chmod 700 ./install-frps.sh #執行腳本 ./install-frps.sh install #卸載 ./install-frps.sh uninstall #管理 /etc/init.d/frps start /etc/init.d/frps stop /etc/init.d/frps restart /etc/init.d/frps status /etc/init.d/frps config /etc/init.d/frps version ~~~ github地址: ### https://github.com/fatedier/frp 客戶端下載地址: [Releases · fatedier/frp · GitHub](https://github.com/fatedier/frp/releases) 1、選擇源,1是Aliyun,2是Github。我們選1 ![](https://pic3.zhimg.com/v2-a201be83241107721222ca571e7685de_r.jpg) 2、選擇服務端口。默認是5443。這個端口的作用是在客戶端連接服務端時是通過這個端口連接的。可以不用修改 ![](https://pic3.zhimg.com/v2-3b1eec6526982e5d75061ed9f94e83b6_r.jpg) 3、設置http連接的端口。默認80,沒有被占用就默認 ![](https://pic2.zhimg.com/80/v2-c5d873c66ee1e8e4083fe5c2f9ea7d01_720w.png) 4、設置https連接的端口。默認443,沒有被占用就默認 ![](https://pic3.zhimg.com/80/v2-50cab3192ab9e88405b8019ed951719e_720w.png) 5、設置面板的端口。直接用默認端口6443 ![](https://pic1.zhimg.com/80/v2-90eca02ad46426d6b5e7b6a55a160ae8_720w.png) 6、設置登錄面板的用戶名和密碼,根據個人喜好設置 ![](https://pic3.zhimg.com/80/v2-ae9c9fb472542a220bd82b91a7e9e232_720w.png) ![](https://pic1.zhimg.com/80/v2-7f8e7c81e407691818b8102b2300b2f0_720w.png) 7、設置token。客戶端需要填寫的 ![](https://pic2.zhimg.com/80/v2-6df6e56d029f9e3ca6442013d3d404e9_720w.png) 8、設置域名,如果有就填寫,沒有就默認IP ![](https://pic2.zhimg.com/80/v2-3f7d85cd1f333e4b7b235ed812d2719d_720w.png) **其他的配置就默認就好** 安裝好之后可以通過 frps config 指令修改或者查看配置。所以忘記了不怕 9、啟動服務 ~~~text frps start ~~~ 最后,在瀏覽器中輸入[http://ip:6443](http://ip:6443/)。如果打不開,請看看是不是VPS的防火墻沒有開放6443端口。 如果成功就能看到如下的界面 ![](https://pic2.zhimg.com/v2-b3c544c0c97ee66b761d8c84c25fb739_r.jpg) ### 啟動服務端 frps: ~~~ ./frps -c ./frps.ini ~~~ 查看`frp`進程 ~~~ ps -aux | grep frp ~~~ ### **客戶端配置文件:** **frpc.ini** ~~~ [common] # 服務器地址 server_addr =192.168.0.0 # 服務器端口 server_port = 5443 # 服務器連接憑證 token = otkentiejsdlfasdl;f [web01] type = http local_port = 80 remote_port = 9980 custom_domains = a.frp.baidu.com host_header_rewrite = bd.cc [web02] type = http local_port = 80 remote_port = 9980 custom_domains = b.frp.baidu.com host_header_rewrite = localhost [web02_port] type = http local_ip = 127.0.0.1 local_port = 8686 remote_port = 9980 custom_domains = ha.frp.aaa.com ~~~ **Nginx端口映射:** 修改服務器的nginx配置: ~~~ map $http_x_forwarded_for $clientRealip { "" $remote_addr; ~^(?P<firstAddr>[0-9\.]+),?.*$ $firstAddr; } server { listen 80; server_name frp.baidu.com *.frp.baidu.com; location / { proxy_pass http://127.0.0.1:9980; #此處的9980就是你安裝frp時設置的vhost_http_port端口 proxy_set_header Host $host; proxy_set_header X-Real-IP $clientRealip; # $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看