How do MacOS users install and test AnQiCMS?

Calendar 👁️ 65

As a senior CMS website operation personnel in an enterprise, I fully understand the importance of the content management system for enterprises and self-media.AnQiCMS with its high efficiency, flexibility, and security stands out among many CMS systems.For MacOS users, its simple deployment process makes local development and testing particularly convenient.Now, I will give you a detailed introduction on how to install and test AnQiCMS on MacOS.

AnQiCMS is an enterprise-level content management system developed based on the Go language, committed to providing a set of efficient, customizable, and easy-to-expand content management solutions.Its original design was to serve small and medium-sized enterprises, self-media operators, and users with multiple site management needs, effectively supporting diverse content display and management requirements.Whether it is to build a corporate website, a marketing website, a product display site, or a personal blog, AnQiCMS can provide strong and secure technical support.

Preparation of MacOS environment and download of AnQiCMS

Before installing and testing AnQiCMS on MacOS, we need to ensure that MySQL and Nginx are already installed in the local environment.These are the services required for AnQiCMS to run, and users need to install and configure them themselves.After completing the environment setup, you can visit the AnQiCMS official website to download the MacOS version of the package.Generally, this package will be a compressed file, please extract it to any directory where you wish to store the project after downloading.In the extracted folder, you will find the core executable file of AnQiCMS.

Start AnQiCMS and complete the initialization settings

After unzipping, you just need to double-click on the unzipped directory inanqicmsA executable file can start the AnQiCMS service. AnQiCMS defaults tohttps://en.anqicms.comThis address listens for requests.When you first visit this address, the system will guide you to enter the initial installation interface.On this interface, you need to configure the database connection information, such as the MySQL address, username, password, and database name.At the same time, you also need to set the administrator account and password for AnQiCMS background.Ensure that the database information you provide is accurate and you have sufficient permissions. Moreover, the administrator password should be complex enough to ensure security.After completing these settings, click the install button, AnQiCMS will complete the initialization deployment.

Configuring Nginx reverse proxy and local domain resolution

To better simulate the production environment and access with a more friendly domain name, it is recommended to configure Nginx reverse proxy on MacOS and modify the local hosts file. First, you need to modify the Nginx configuration file and add a newserverSet up a reverse proxy for AnQiCMS. Below is an Nginx configuration example, which you can adjust according to your actual situation and place in the Nginx configuration file.httpWithin block:

server {
    listen 80;
    server_name yourdomain.com; # 替换为你想使用的本地域名

    location @AnqiCMS {
        proxy_pass https://en.anqicms.com; # AnQiCMS默认监听端口
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    error_page 404 =200 @AnqiCMS;

    location / {
       try_files $uri $uri/index.html @AnqiCMS;
    }
}

Please replaceyourdomain.comReplace it with the domain name you wish to test locally, for exampletest.anqicms.local. After saving the Nginx configuration, please restart the Nginx service to make the changes take effect.

Next, you need to modify the MacOS's/etc/hostsfile, and point the local domain configured in Nginx to127.0.0.1. Open the terminal, usesudo nano /etc/hostsCommand edit the file and add the following line at the end:

127.0.0.1    test.anqicms.local

Save and close the file. This way, when you visit the site in your browser,test.anqicms.localWhen, the request will be proxied to the locally running AnQiCMS service via Nginx.

Access and test AnQiCMS

After completing these steps, you can access your AnQiCMS site via the browser. Enter the locally configured domain name in the browser address bar (for examplehttp://test.anqicms.local),You will see the AnQiCMS front-end page. To access the admin interface, please add the domain name after/system/Path, for examplehttp://test.anqicms.local/system/. If you did not set the administrator account password during initialization, the default account isadmin, and the password is123456. It is strongly recommended that you change the default password immediately after your first login to the backend to enhance security.

In the background, you can start creating content, managing categories, configuring SEO options, and testing the various functions of AnQiCMS.By setting up and testing locally, you can fully familiarize yourself with the system's operational procedures and content publishing mechanism, preparing for future online deployment.The AnQiCMS multi-site management feature can also be tested in the MacOS environment.You just need to repeat the steps of Nginx reverse proxy and hosts file configuration, set up an independent domain name for each new site, and add a new site to the multi-site management interface in the AnQiCMS background.

By following these detailed steps, MacOS users can easily install and test AnQiCMS locally, fully utilizing its enterprise-level content management capabilities to provide a solid foundation for website operations.


Frequently Asked Questions (FAQ)

1. How to handle the prompt 'Port is already in use' when running AnQiCMS on MacOS?

AnQiCMS default usage8001Port. If you encounter an issue with the port being occupied at startup, you can first use the terminal commandlsof -i:8001Find out which process is using the port. After finding the corresponding process ID (PID), you can usekill -9 [PID]Command to terminate the process. If you need to avoid this problem long-term, you can consider modifying the configuration file under the AnQiCMS installation directory, which willportChange the parameter to another unoccupied port number, such as8002Then restart the AnQiCMS service.

2. How to properly stop or close AnQiCMS after starting it on MacOS?

Due to AnQiCMS being directly executed as an executable file on MacOS, it usually displays the running log in the terminal window.To stop AnQiCMS, you can close the terminal window it is running in.nohupcommand), or if you cannot find the corresponding terminal window, you can use it in the terminal.ps -ef | grep anqicmsCommand to find the process ID (PID) of AnQiCMS. Once you find the PID, you can usekill -9 [PID]Order to forcibly terminate the process, thereby closing the AnQiCMS service.

3. After configuring Nginx reverse proxy and hosts file, why can't I access AnQiCMS via domain name? Why?

There are several common reasons that can cause this problem. First, make sure that the Nginx service has been successfully started or restarted. You can usenginx -tCheck the syntax of the Nginx configuration file and then usesudo nginx -s reloadRestart Nginx. Next, please check the Nginx configuration file carefully.server_nameandproxy_passIs the setting completely matched with your actual domain and AnQiCMS listening port (default is 8001). Finally, confirm your/etc/hostsThe file has correctly pointed to the domain127.0.0.1And the browser cache may need to be cleared, or try accessing in a different browser or incognito mode.

Related articles

How to safely stop or close the AnQiCMS program running on Windows?

As an experienced website operator who deeply understands the operation of security CMS, I am fully aware of the importance of program security, stable operation, and the ability to stop safely when necessary.Whether it is for system maintenance, version upgrade, or daily development and testing, correctly shutting down the AnQiCMS program is a critical step to ensure data integrity and system stability.Under Windows operating system environment, stopping or closing the AnQiCMS program is usually a direct process.Because AnQiCMS is an independent executable file developed based on the Go language

2025-11-06

How to perform local development and testing of AnQiCMS in Windows environment?

As an operator who is deeply familiar with the operation of AnQiCMS, I fully understand the importance of sufficient local development and testing before formal launch to ensure the quality of website content, user experience, and system stability.Set up an efficient AnQiCMS local development environment under the Windows environment, which allows you to freely create, edit, publish, and optimize content, while also performing various function tests, thereby greatly improving work efficiency.The following will elaborate on how to carry out local development and testing of AnQiCMS in a Windows environment.###

2025-11-06

How to set up AnQiCMS to start automatically on Linux server (Crontab)?

As an experienced security CMS website operations personnel, I am well aware of the importance of stable website operation, especially after an unexpected server restart, when the system can automatically restore services, which is crucial for ensuring user access experience and avoiding operation interruption.AnQiCMS (AnQiCMS) is an efficient and concise content management system developed in Go language, with flexible deployment methods, but how to ensure it starts up automatically on Linux servers is a concern for many operators.

2025-11-06

How to configure AnQiCMS's Nginx proxy in the Linux command line environment?

As a senior CMS website operation person in an enterprise, I know that stable and efficient deployment is the foundation of successful website operation.Under Linux, Nginx, as a high-performance reverse proxy server, is the ideal partner for AnQiCMS, and can effectively improve the speed and security of website access.I will introduce in detail how to configure Nginx in the Linux command line environment to provide a stable and reliable reverse proxy service for AnQiCMS.

2025-11-06

What should I do if I encounter port occupation problem during AnQiCMS installation?

As a website operator who has been deeply involved in AnQiCMS for many years, I know that even a small technical detail can become a stumbling block for users to successfully go online.Among them, port occupation problems are typical scenarios often encountered when initially installing or expanding AnQiCMS.Today, let's delve into how to efficiently identify and resolve port occupation issues when installing AnQiCMS.Understanding Port Usage Problem First, let's understand what port usage is.In network communication

2025-11-06

How to use Docker to install and deploy AnQiCMS on 1Panel?

As an experienced website operator, I am well aware of the importance of an efficient and easy-to-manage content system for both enterprises and individual operators.AnQiCMS (AnQiCMS) is an ideal choice for many users seeking stable, flexible content solutions with its high-performance, modular design and rich built-in features based on the Go language.It not only deploys easily, with an elegant interface, but also excels in security and SEO-friendliness, meeting the needs of various content management requirements for corporate websites, marketing websites, and even personal blogs.

2025-11-06

How to set up port mapping and reverse proxy for AnQiCMS Docker container in Panel?

As an experienced senior CMS website operation person, I know the importance of efficient deployment and stable operation for any content management system.In the modern web environment, Docker container deployment is favored for its convenience, isolation, and portability.A strong and flexible content management platform can be provided for you by combining Anqi CMS with Docker.This article will elaborate on how to set up port mapping and reverse proxy for the AnQiCMS Docker container in the Panel environment, ensuring that your website can be accessed smoothly.

2025-11-06

How to deploy AnQiCMS Docker application with aaPanel one-click?

As an experienced CMS website operation person in an enterprise, I am well aware of the importance of an efficient and stable content management system for both enterprises and individual operators.AnQi CMS, with its high concurrency characteristics of the Go language, concise architecture design, and in-depth optimization for SEO, has become the preferred choice for many small and medium-sized enterprises and self-media teams.

2025-11-06