- Memory >= 512M
- If using MySQL version >= 5.7
docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
After selecting the language click next to select the appropriate database, if you just want to experience it currently, it is recommended to select sqlite as the database directly, as shown below
Then click next to create the configuration file, click next to enter the basic website information and administrator information, as shown below
Click Next to complete the installation
Login with the administrator username and password you just created.
mkdir answer && cd answer
wget https://raw.githubusercontent.com/answerdev/answer/main/docker-compose.yaml
docker-compose up
The exact configuration is the same as for docker use
https://github.com/answerdev/answer/releases Download the version you need for your current system
The following command -C specifies the data directory required for answer, you can modify it as you see fit
. /answer init -C . /answer-data/
Then visit: http://127.0.0.1:9080/install to install, the configuration is the same as using docker installation
After the installation is complete, the program will exit, so use the command to start the project formally
. /answer run -C . /answer-data/
After normal startup you can access http://127.0.0.1:9080/ to log in using the administrator username password specified during installation
- Having trouble reinstalling using docker? The default command we give is to use
answer-data
to name the volume, so if you don't need the original data again, please delete it voluntarilydocker volume rm answer-data