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