Open source Q&A community software Answer

insert image description here

What is Answer?

AnswerIt is an open source knowledge-based community software. You can use it to quickly build your Q&A community for product technical support, customer support, user communication, etc.

AnswerIt is a technical question-and-answer community developed by the domestic SegmentFaultSifu team. It Answernot only has the basic functions of building a question-and-answer platform ( Q&A Platform), but also adds community functions such as tag content management, scoring and reputation value system.

Install

build database

The database is directly used by SynologyMariaDB 10

insert image description here

Created a database named phpMyAdmininanswer

insert image description here

For the sake of illustration, we assume that the database password is123456

Install Answer

Install it in Docker mode on Synology.

Search in the registry answer, select the first one answerdev/answer, version selection latest.

At the time of writing this article, latestthe version corresponds to 1.0.2;

insert image description here

roll

Inside dockerthe folder , create a new folder answerwith a subfolder inside itdata

folder mount path illustrate
docker/answer/data /data Store settings, language packs, etc.

insert image description here

port

It is fine if the local port does not conflict. If you are not sure, you can check it with the command

# 查看端口占用
netstat -tunlp | grep 端口号
local port container port
9080 80

insert image description here

command line installation

If you are familiar with the command line, it may be docker clifaster

# 新建文件夹 answer 和 子目录
mkdir -p /volume2/docker/answer/data

# 进入 answer 目录
cd /volume2/docker/answer

# 运行容器
docker run -d \
   --restart unless-stopped \
   --name answer \
   -p 9080:80 \
   -v $(pwd)/data:/data \
   answerdev/answer:latest

You can also use docker-composethe installation , save the following content as docker-compose.ymla file

version: "3"

services:
  answer:
    image: answerdev/answer:1.0.2
    container_name: answer
    restart: on-failure
    ports:
      - '9080:80'
    volumes:
      - ./data:/data

Then execute the following command

# 新建文件夹 answer 和 子目录
mkdir -p /volume2/docker/answer/data

# 进入 answer 目录
cd /volume2/docker/answer

# 将 docker-compose.yml 放入当前目录

# 一键启动
docker-compose up -d

run

Enter in the browser http://群晖IP:9080to see the setup wizard interface

If the language recognition is wrong, you can select it through the drop-down box简体中文

insert image description here

Next set up the database

insert image description here

Generate settings fileconfig.yaml

insert image description here

The files are located in /data/confthe directory

insert image description here

Next set the site information

Note that the password cannot be less than 8 characters

insert image description here

done, call it a day

insert image description here

currently empty

insert image description here

Log in with the previously set administrator account and password

insert image description here

后台管理advanced settings

insert image description here

The default time zone is incorrect, Lao Su made a modification

insert image description here

AnswerAdding questions to is easy. Just click the button and start writing your question. AnswerHas a built-in feature-rich editor

insert image description here

It is very simple to use, so I won’t expand it here

reference documents

answerdev/answer: An open-source knowledge-based community software. You can use it quickly to build Q&A community for your products, customers, teams, and more.
地址:https://github.com/answerdev/answer

Answer
address: https://answer.dev/

Guess you like

Origin blog.csdn.net/wbsu2004/article/details/130145419