1. home page
  2. Unclassified

[Write Program] The second program of the slag fruit?

Since the first PHP program written last year (2019), behind the self-service management panel of the factory alien factory. Guoguomiao gave birth to a trial program of golang again in difficulty

Said the program was small. But it feels complicated to me

Hmm... The programming technology for Baidu is so good that it is almost groundless+I watched some basic videos without patience... and played games at the same time. While thinking... I finally wrote the function I probably wanted after a month of rubbing and kneading.

The story line starts from here~~~~~

The reason is that the student machine of Alibaba Cloud is about to expire. The renewal price is very expensive. With the cheap 2H0.5G burst performance machine, running MySQL feels that the memory is not enough... and you will get 25+yuan a month without the traffic cost. Not cost-effective

Just by chance! When I run the factory server business, I have a 2H0.5G machine. So why not use this machine to forward blog pages? The blog was lost to the 64G two-way server at home. Enough memory pipes!

In that case. Then I decided to start like this~

It is very convenient and fast to use FRP to establish forwarding. But there is a problem if the server at home is offline. An error will be returned when others visit the blog. [At first I thought this error page could not be modified, but later I learned that it could be modified...]

Then turn to Nginx reverse generation. But the Nginx reverse generation health detection function is also very disabled... but there are more configurable items, so we are ready to do health detection on Nginx.

And then. Tengine's Nginx based thing is used. But after several days of configuration debugging. I don't think it's very good to make... Hmm... It also caused a wave of dockers by the way

The next step is to prepare to write by yourself! [Is this a rumor that is not self made?]

In PHP, the server memory is not large. Installing the PHP environment is a bit too large... Then I learned that Golang can run without configuring the environment. Directly run a binary file. That's great!

Then it imitated the Tengine health detection function

During this period, all the functions of Golang were Baidu Baidu Baidu Baidu. I haven't seen Baidu for more than a week in the whole year

But it's OK~The program that has been pieced together is running (smiling face here)

But I feel my code will be suffocating... so I won't throw it out. It's a shame for QWQ.

The game went to wwwww

score zero , full marks 5-star
zero ticket
fabulous two
After reading and collecting, you can find it next time
  • Copyright notice: This article is published based on the Knowledge Sharing Attribution - Sharing in the Same Way 3.0 Mainland China License Agreement. Please follow this agreement for reprinting
  • Article link: https://moe.xin/1385.html [ copy ](Please indicate the source and link of this article when reprinting)
  • No relevant articles in this article
Previous:
: Next

10 comments

 gravatar

  1. you are so great.

    #1st floor
  2. Yo, the fruit will go

    #2nd floor
  3. How many years have you used this theme?

    #3rd floor
    1. @ nissen Well, when was the earliest file of this blog used this leather~

  4. Baidu oriented programming :lol:

    #4th floor
    1. @ Feng Xiaoxian Facing Baidu, we are going astray!

  5. Then the price of the server was reduced hahahahahaha

    #5F
    1. @ yingfeng The regular price is relatively comfortable~

  6.  :lol: Baidu is a good thing!

    #6th floor
    1. @ Illusory glow It's bald