谷粒商城p109的命令
时间: 2023-10-06 22:14:00 浏览: 109
谷粒商城p109,es测试数据
下载谷粒商城p109的命令如下:
首先,使用wget命令下载frp_0.20.0_linux_amd64.tar.gz文件,命令如下:
```
wget https://github.com/fatedier/frp/releases/download/v0.20.0/frp_0.20.0_linux_amd64.tar.gz
```
接下来,使用host工具,以管理员权限打开SwitchHost,并在其中添加以下配对信息:
```
119.3.105.108 gulimall.com
119.3.105.108 auth.gulimall.com
119.3.105.108 search.gulimall.com
119.3.105.108 item.gulimall.com
```
然后,修改frpc.ini配置文件,将以下内容添加到文件中:
```
[common]
server_addr = 公网ip地址
server_port = 7000
token = 123456
[http]
type = http
local_ip = 127.0.0.1
local_port = 88
custom_domains = 公网ip地址
host_header_rewrite = gulimall.com
```
请注意,最后一步设置请求的host字段是在nginx中完成的,这里只是在frpc.ini中配置了相关内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [谷粒商城P139集——云服务器frp内网穿透+nginx](https://blog.csdn.net/weixin_57139527/article/details/126789451)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [谷粒商城-08-p139-p172](https://blog.csdn.net/weixin_45041878/article/details/124761544)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文