当前位置:网站首页>Five minutes to teach you intranet penetration

Five minutes to teach you intranet penetration

2022-08-11 11:30:00 Sora33

Recently, I'm working on a project of my own.Take a monitoring platform of Micrometer+prometheus+grafana.

Let's see the results first

This monitoring platform can help us check the running status of the project.Including JVM heap occupancy, non-heap occupancy, network request frequency, CPU usage, new generation and old generation, etc.It is a very comprehensive monitoring platform.But when building, because my prometheus is deployed on the server.My project runs locally.This is very embarrassing, the server cannot access my local project.Isn't that a big eyeball?So, without saying a word, I penetrated the intranet again.

One. Download ngrok

We need a tool to help us achieve intranet penetration.I use ngrok, it's easy and fast.

ngrok - secure introspectable tunnels to localhostngrok secure introspectable tunnels to localhost webhook development tool and debugging toolhttps://dashboard.ngrok.com/get-started Go directly to the official website above, (remember to register an account) to download the zip and unzip the installation.

After the installation is complete, you will find that none of the above happened, don't worry.Go to the installation directory and open the web console.

Enter the account password we just registered.

Enter the port number for our local project.For example, what I set here is to create the address of http://localhost:8080 directly

Then click on the tunnel list. Now we can use this address to allow the external network to access our local project

Then the intranet penetration is achieved so quickly.If there are more than 5 likes, Micrometer+prometheus+grafana will be published in the next issue to build our own project monitoring platform

原网站

版权声明
本文为[Sora33]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208111113590272.html