Blog Server Migration Notes (2023.11.12)
Operating environment
-
Nginx -
PHP-FPM -
MySQL -
Redis
Administration
Migration process
-
Package the old server files, and upload the SCP to the new server (the 3M uplink small water pipe of Tencent Cloud took more than an hour to upload). -
Decompress the files on the new server, and drop MySQL, WWW, etc. into the mapping folder of the corresponding container. The new server Docker Compose pulls up each container and starts the service. -
For the new container status, simply modify the Nginx configuration file to realize the exposure and reverse generation of Web services. -
Access the exposed service through the local host pointing to the new server. After confirming that the service is normal, the observation period will begin. -
After the observation period, modify the CDN back to the source, import the traffic to the new server, and keep the old server running. -
Three days later, stop and delete the old server.
future
Comment
Comment area
0F This theme is very interesting 0F It's nearly 10 years! Worship the elders! I recently bought a new server, moved the card, and moved the blog after the reconstruction. Alas, this year, the domain name was inexplicably and wonderfully certified by Tencent, and I dare not use domestic services any more. 0F Don't consider adding rss 0F Ten years, time flies