Ngrok environment preparation for WeChat development

高洛峰
Release: 2017-02-15 11:05:08
Original
1739 people have browsed it

1. Why use ngrok?

Everyone must know that when doing WeChat development, our development server needs to interact with the WeChat server. SO, we need to prepare a server placed on the public network so that our server can normally access the WeChat server. , and the WeChat server also needs to be able to access our development server normally. Normally, our development server is placed on the intranet. WeChat's server cannot interact with our intranet server, which makes our development very difficult. We stepped on some pitfalls and found http://ngrok.cc. Please follow me to configure our ngrok service~~

2. Tool preparation

 1. node (other web servers are also acceptable)

 2. ngrok Client (download according to your own computer system)

3. Steps

1. Visit the ngrok authorization management system (http://www.ngrok.cc/login), click Register, and register account number.

2. Log in to the ngrok authorization management system

Fill in the corresponding information

As shown below:

Ngrok environment preparation for WeChat development

3 , Added successfully

Ngrok environment preparation for WeChat development

4. Download the client and unzip it

5. Start the ngrok service: the id number is the client id

in the above picture

Ngrok environment preparation for WeChat development

Start successfully

Ngrok environment preparation for WeChat development

6. Start the local server

Ngrok environment preparation for WeChat development

7. Enter http://muyunyun.ngrok.cc (the address mapped in step 5) into the browser. Dangdang!

Ngrok environment preparation for WeChat development


For more articles related to Ngrok environment preparation for WeChat development, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!