MM-Wiki 是一个轻量级的企业知识分享与团队协同软件,可用于快速构建企业 Wiki 和团队知识分享平台。部署方便,使用简单,帮助团队构建一个信息共享、文档管理的协作环境
https://gitee.com/phachon/mm-wiki
mkdir mm_wiki
cd mm_wiki/
wget https://github.com/phachon/mm-wiki/releases/download/v0.1.3/mm-wiki-linux-amd64.tar.gz
tar xf mm-wiki-linux-amd64.tar.gz
cd install
nohup ./install &
http://ip:8090
create database mm_wiki character set utf8 collate utf8_general_ci;
grant all on mm_wiki.* to 'mm_wiki'@'127.0.0.1' identified by '123456';
mysql -umm_wiki -p123456 -h 127.0.0.1
nohup ./mm-wiki --conf conf/mm-wiki.conf &
http://ip:8080
upstream frontends {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name wiki.intra.xxxxx.com www.wiki.intra.xxxxx.com;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://frontends;
}
# 静态资源交由nginx管理
location /static {
root /www/mm-wiki; # MM-Wiki 的根目录
expires 1d;
add_header Cache-Control public;
access_log off;
}
}
下载新版本到部署该项目的根目录
覆盖解压
执行升级命令
./mm-wiki --conf conf/mm-wiki.conf --upgrade
重新启动
./mm-wiki --conf conf/mm-wiki.conf
wget https://dl.google.com/go/go1.8.linux-amd64.tar.gz
tar xf go1.8.linux-amd64.tar.gz -C /usr/local/
vim /etc/profile.d/go.sh
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
mkdir /root/go/src
cd /root/go/src
git clone https://github.com/phachon/mm-wiki.git
cd mm-wiki
go build ./
cd install/
go build ./
go get github.com/astaxie/beego
go get github.com/astaxie/beego/session/memcache
go get github.com/astaxie/beego/session/redis
go get github.com/astaxie/beego/session/redis_cluster