The operation list for the first day of a new site launch: where are the port monitoring, backup tasks, and logs configured in each step?
The goal on the first day of the new site launch is not 'can be opened', but to lay the foundation for future troubleshooting in one go: the service is listening, there is an entrance for access, backup has become a task, logs can be retained, and recovery verification has been completed. It is recommended to follow the sequence in the table, finish each step before moving on to the next, and avoid rework brought by 'publish first and then configure'.
| sequence | Action | Completion standards |
|---|---|---|
| One | Confirm program listening | The default port 8001 is accessible on this machine |
| two | Reverse proxy and domain | Domain80⁄443Normal origin return, certificate生效 |
| three | Set up backup task | Package task with data and static files |
| four | Receive logs | Access and error logs can be checked daily |
| five | Inspection of functional points | Home page, detail page, backend login all pass |
First confirm the service itself: port and listening
AnQiCMS written in GoLang, delivered as a single program, default listening on port 8001. The first step of going online is to verify on the server machine: locally request 8001 to display a page, and the backend can log in, then proceed with any external actions. The significance of this step is to separate the two types of failures - 'program not running' and 'network not connected' - skip it and directly configure the domain name, and when an error occurs, you can't tell whether to check the application or the proxy.
Reverse proxy and domain access
Confirm the listening and then hand over the external access to the Web server layer: Use Nginx-like proxies to forward 80 and 443 requests to the local 8001, and install the certificate on the proxy layer. This link needs to do three things smoothly: Configure the redirection from http to https; pass the real source address of the client to the program through the request header, otherwise the logs will be all the addresses of the proxy server; when uploading large attachments, check that the volume and timeout limit of the proxy layer are not less than the program requirements.
Establish the backup task on the day it is created, and practice the recovery.
Many websites only remember to back up after something goes wrong. The things to do that day are not to 'turn on the backup switch', but three: set up a scheduled task, confirm that the backup range covers data and static files (uploaded images should be taken along, AnQiCMS backup and recovery include static files), and try to restore the generated backup package in an isolated environment once. Only the backup packages that pass the restoration can count as valid, and files that have never been verified and are just lying in the directory are just psychological comfort.
Only after logging can troubleshooting be discussed.
Access logs and error logs are cut by day, enough retention period is left, and the two logs need to be aligned by timeline when there is a problem in order to locate. Special attention should be paid to checking the disk storage and rotation of container logs when deploying Docker (image anqicms/anqicms), as the container may take away the history under the default configuration; in Baota panel or aaPanel environment, check whether the backup and log cleaning tasks in the panel task plan are really executed as planned.
The order of checks on the first day of going online
Conclude the final inspection by following the visitor's path: Home page, category list, article details, in-site search, and form submission each time; then follow the administrator path: login to the background, publish a test draft and preview, delete and confirm that the recycle bin can find it. Only after passing all of them can the site be switched from maintenance prompt to formal public, and the configuration change records of the day should be archived - the next person taking over needs to know what the baseline of the first day is.
Common questions
Ask: Do I need to configure reverse proxy myself after deploying with the Baota panel? Answer: The panel will manage the site and certificate configuration, but the standards in the second and third steps remain unchanged: jump, real source header, and backup task must be checked against the output, and cannot be taken for granted as already configured.
Ask: Where should the backup be stored, on the local machine or object storage? Answer: At least two different copies are required: keep the local backup for quick recovery, and store another copy off-site. If the server fails completely, the local backup will not save you.
Ask: How long should log retention be? Answer: Access logs should cover at least one complete business cycle, allowing you to review the source of exceptions; after the debugging period, you can reduce the detail level to control disk usage.