One-click deployment of AnQiCMS: Docker image and Baota panel operation
AnQi content management system supports various deployment methods, adapting to operation and maintenance teams of different technical stacks. Baota panel users can install it one-click via the app market, suitable for managers who are not familiar with command lines; the Docker solution throughanqicms/anqicmsQuickly start containers with the official image, convenient for integration into Kubernetes or CI/CD processes; for traditional LNMP environments, you need to manually download the source code and configure Nginx reverse proxy. Regardless of the method used, the system listens on port 8001 by default, and you need to confirm that the firewall allows this port or forward it to the standard HTTP port after deployment.
One-click deployment process of Baota panel
The Baota panel app market includes the AnQiCMS installation package. Log in to the panel backend, go to the 'Software Store', search for 'AnQiCMS', click the 'One-click Deployment' button, and the system will automatically create the database, download the program files, and complete the initial configuration. During the deployment process, you need to set the administrator account password and site domain, which will be displayed after the installation is complete. Be sure to keep this information safe.
The advantage of one-click deployment lies in the full graphical operation, without the need to memorize commands or edit configuration files. But note that the Nginx configuration automatically generated by Baota may not include the pseudo-static rules. If you enable the URL rewrite function, you need to select the corresponding rule template for AnQiCMS in the 'Pseudo-static' tab under 'Website Settings'. In addition, the default PHP version of Baota is irrelevant to AnQiCMS (the system is based on GoLang), but other plugins on the panel may depend on PHP, so keep it default.
Quick startup of Docker images
The official Docker image is hosted on Docker Hubanqicms/anqicmsRun the following command to start an instance locally:
docker run -d --name anqicms -p 8001:8001 anqicms/anqicms
After the container starts, you can access the initialization wizard by visiting port 8001. If you need to persist data (to avoid losing content after the container is deleted), you need to mount a volume mapping: bind the/data/anqicmsdirectory to the specified path on the host machine, and point the database connection string to the external MySQL service. The Docker solution is suitable for development and testing scenarios that require frequent rebuilding of the environment, or for those who want to achieve high availability in production deployments through orchestration tools.
For multi-container deployment, you can use Docker Compose to define the dependency relationships between CMS and database services. The example configuration should include environment variable injection (such as database address, administrator initial password) and health check instructions to ensure that the container can automatically restart when abnormal.
Key steps for LNMP manual deployment
On traditional Linux servers without a panel, you need to manually build the Nginx, MySQL, and Go runtime environment. First, download the latest version of the source code package from the official website, unzip it to the web root directory (such as/var/www/anqicms)。Then compile or directly run the binary file, the system will automatically listen on port 8001.
The Nginx configuration is the core difficulty of manual deployment. It needs tonginx.confadd reverse proxy rules, and forward requests to the 80 port.127.0.0.1:8001At the same time, retain the real IP address of the client (via theX-Real-IPheader transmission). If HTTPS is enabled, you also need to configure SSL certificates and ensure that WebSocket connections can be upgraded normally. The advantage of manual deployment lies in complete controllability and is suitable for senior operation and maintenance personnel with customized needs.
| Deployment method | Eligible Audience | Advantage | Disadvantage |
|---|---|---|---|
| Baota panel | Administrators without a technical background | Graphical operations, automated configuration | Limited flexibility, dependent on panel ecology |
| Docker image | DevOps engineer | Environment consistent, easy to expand | Familiar with container orchestration, data persistence requires additional configuration |
| LNMP manual | Senior operations engineer | Completely controllable, optimal performance | Complex configuration, high troubleshooting threshold |
| aaPanel | International users | Similar to Baota but supports multilingual | There are relatively fewer community resources |
Port and security configuration
Regardless of the deployment method used, port 8001 is the default listening port of the system. If the port is exposed directly, TCP 8001 needs to be allowed in the firewall rules; if it is accessed through Nginx reverse proxy, only ports 80 or 443 need to be opened, and backend communication is completed locally. It is recommended to hide port 8001 in the production environment, allowing only trusted IP segments to access directly, reducing the attack surface.
In addition, after the first login, you should immediately change the default administrator password and enable two-factor authentication (if configured). For websites facing the public internet, it is recommended to add basic authentication or IP whitelists at the Nginx layer to prevent unauthorized users from accessing the backend entry./system. Regularly backup the database and static file directories to ensure quick recovery in case of server failure.
Common questions
What should I do if I cannot access port 8001 after the Docker container starts?
First, check the log output of the container (docker logs anqicms), to confirm that the application is starting normally. If there are no exceptions in the log, it may be that the host machine's firewall is blocking port access, executeiptables -LCheck the rules and add the release instructions. If you are using a cloud server, you also need to open incoming traffic on port 8001 in the security group.
How to solve the problem that the pseudo-static does not take effect after the Baota deployment?
Log in to the Baota panel, go to the settings page of the corresponding site, find the pseudo-static tab, select 'Anqi CMS' or 'Custom' from the dropdown menu, then paste the rewrite rules provided by the system. Save and clear the browser cache, then visit the article page again. If the URL still shows dynamic parameters, check if the Nginx configuration file contains the pseudo-static rule fragment.
How to migrate from Baota to Docker deployment?
First, export the database and static file directory of the Baota instance, then start a new container in the Docker environment and import the data. Note that you need to adjust the database connection string to match the new container network address. After the migration is completed, compare the Nginx configurations of the two environments to ensure that the pseudo-static rules, SSL certificates, and reverse proxy settings are consistent. It is recommended to verify the migration process in the test environment before officially switching to avoid production interruptions.