MM-Wiki 搭建配置

Posted a371933136

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MM-Wiki 搭建配置相关的知识,希望对你有一定的参考价值。


MM-Wiki 搭建配置

apt -y install mariadb-server
mysql -uroot -e "create database mm_wiki default charset utf8; grant all on mm_wiki.* to mm_wiki@127.0.0.1 identified by Qwer1234; flush privileges;"

mkdir /opt/mmwiki
cd /opt/mmwiki/
wget https://github.com/phachon/mm-wiki/releases/download/v0.2.1/mm-wiki-v0.2.1-linux-amd64.tar.gz
tar -zxvf mm-wiki-v0.2.1-linux-amd64.tar.gz
cd install
./install
mkdir /data

http://ip:8090 初始化配置

MM-Wiki


MM-Wiki


MM-Wiki


MM-Wiki

# 自启
cat > /etc/systemd/system/mmwiki.service <<EOF
[Unit]
Description=mmwiki
After=network.target
Wants=network.target
[Service]
Type=simple
PIDFile=/var/run/mmwiki.pid
WorkingDirectory=/opt/mmwiki
ExecStart=/opt/mmwiki/mm-wiki --conf conf/mm-wiki.conf
RestartPreventExitStatus=23
Restart=always
[Install]
WantedBy=multi-user.target
EOF

systemctl start mmwiki
systemctl enable mmwiki

LDAP 设置

# json

"basedn": "dc=free,dc=net",
"bind_username": "it-conn",
"bind_password": "Qwer1234",
"account_pattern": "(&(objectClass=User)(sAMAccountName=%s))",
"given_name_key": "displayName",
"email_key": "userPrincipalName",
"mobile_key": "mobile",
"phone_key": "telephoneNumber",
"department_key": "department"


以上是关于MM-Wiki 搭建配置的主要内容,如果未能解决你的问题,请参考以下文章

如何搭建团队知识库?试试这款开源项目

个人Gitlab搭建及配置

Spring Cloud基础之Config Server配置中心简单搭建

八、rancher搭建nginx配置

Docker搭建ES集群配置

SpringCloud 项目搭建:服务配置中心搭建