Hello, welcome to the startup problem handling of AnQi CMS on Linux servers
The method described below is the method for handling on Linux servers and is not applicable to Windows servers.
Question one, it cannot be started, and the port is occupied提示
There are generally two cases at this time
Case one, there is a port conflict with other AnQi CMS websites, which usually occurs when multiple AnQi CMS are installed on the server
This is the time to edit config. and change it to a new unused port
Go to the root directory of the website and edit config.
Modify the port to 8002 or any unused port
save and exit
Re-execute the startup script
In case two, the program has started but needs to be restarted, such as after the security CMS upgrade
In this case, we need to check the port usage first, the command used is
lsof -i:port number, for example, if the port is 8002, the command is lsof -i:8002
You can see the program ID that is using the port, and then use the kill command to terminate the process
The usage of the kill command is kill -9 process ID, for example, if the process ID is 70049, then the command is kill -9 70049
If multiple process IDs are detected, they can be killed together, with process IDs separated by spaces
In addition to checking the process ID through the port number, you can also check the process ID by executing the filename
Use the command is pidof to execute the filename, for example, if the filename is anqibin1, then the command is pidof anqibin1
You can see the process ID of the executable file being executed, use the same kill command to terminate the process
If the above two commands do not find the process ID, it means that the program has not started, and the error may be caused by other reasons.
Question two, the MySQL account password is incorrect.
If you have ever migrated a website, such as moving from a local test website to a server, or from an old server to a new server
An incorrect MySQL account password issue will occur, at this point you need to modify the config. to change to the correct MySQL account password
If not, the program cannot start normally
Open config.
Modify user field
Modify password field
Modify host field
If the database name is also changed, then the database field should also be changed.
save and exit
Re-execute the startup script
Question three, cannot find the startup file of Anqi CMS.
This situation is generally caused by downloading the wrong installation package.
For example, a Windows computer downloaded a Linux installation package, so it could not find anqicms.exe
The Windows installation package was downloaded on a Linux server, and anqicms could not be found
Or after debugging the website on a Windows computer, it needs to be uploaded to a Linux server to use
In this case, you need to redownload the Linux version of the installation package and copy the anqicms file over for use, without changing other files
Question four, automatically detect abnormal execution of scheduled tasks
The general case is due to not specifying the execution filename correctly, for example, we changed the execution filename to anqibin2
In the start.sh script file, if BINNAME is still anqicms, then it needs to be changed over
The start.sh script file has two occurrences of anqicms that need to be changed to anqibin2
Try to start after the changes are correct