mindoc简介
MinDoc 是一款针对IT团队开发的简单好用的文档管理系统。
MinDoc 的前身是 SmartWiki 文档系统。SmartWiki 是基于 PHP 框架 laravel 开发的一款文档管理系统。因 PHP 的部署对普通用户来说太复杂,所以改用 Golang 开发。可以方便用户部署和实用。
开发缘起是公司IT部门需要一款简单实用的项目接口文档管理和分享的系统。其功能和界面源于 kancloud 。
可以用来储存日常接口文档,数据库字典,手册说明等文档。内置项目管理,用户管理,权限管理等功能,能够满足大部分中小团队的文档管理需求。
linux安装
1.下载可执行文件
Releases · mindoc-org/mindoc · GitHub
2.解压压缩包
使用sftp传输到linux服务器上
unzip mindoc_linux_amd64.zip
3.安装数据库
[sherlock@localhost ~]$ yum install mysql-server
Error: This command has to be run under the root user.
[sherlock@localhost ~]$ su
Password:
su: Authentication failure
[sherlock@localhost ~]$ sudo passwd#设置root密码
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for sherlock:
Changing password for user root.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[sherlock@localhost ~]$
[root@localhost sherlock]# yum install -y mysql-server.x86_64 mysql-devel.x86_64
[root@localhost sherlock]# service mysqld start#安装完成后一定要用这条命令执行,否则进不去mysql
Redirecting to /bin/systemctl start mysqld.service
4.创关键数据库
[root@localhost sherlock]# mysql#进入mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.26 Source distribution
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE DATABASE mindoc_db DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;#执行命令创建语句,把字符定义为utf8mb4
Query OK, 1 row affected (0.01 sec)
mysql>
exit
退出
5.配置数据库
[root@localhost sherlock]# cp conf/app.conf.example conf/app.conf
cp: overwrite 'conf/app.conf'? y
[root@localhost sherlock]#
配置文件都已经配置好了,感兴趣可以看看
[root@localhost sherlock]# more conf/app.conf
appname = mindoc
#默认监听的网卡,为空则监听所有
httpaddr="${MINDOC_ADDR}"
httpport = "${MINDOC_PORT||8181}"
runmode = "${MINDOC_RUN_MODE||dev}"
sessionon = true
sessionname = mindoc_id
copyrequestbody = true
#系统完整URL(http://doc.iminho.me),如果该项不设置,会从请求头中获取地址。
baseurl="${MINDOC_BASE_URL}"
#########代码高亮样式################
#样式演示地址:https://highlightjs.org/static/demo/
highlight_style="${MINDOC_HIGHLIGHT_STYLE||github}"
########配置文件自动加载##################
#大于0时系统会自动检测配置文件是否变动,变动后自动加载并生效,单位是秒。监听端口和数据
库配置无效
config_auto_delay="${MINDOC_CONFIG_AUTO_DELAY||20}"
########Session储存方式##############
#默认Session生成Key的秘钥
beegoserversessionkey=NY1B$28pms12JM&c
sessionprovider="${MINDOC_SESSION_PROVIDER||file}"
sessionproviderconfig="${MINDOC_SESSION_PROVIDER_CONFIG||./runtime/session}"
#默认的过期时间
sessiongcmaxlifetime="${MINDOC_SESSION_MAX_LIFETIME||3600}"
#以文件方式储存
#sessionprovider=file
#sessionproviderconfig=./runtime/session
#以redis方式储存
#sessionprovider=redis
#sessionproviderconfig=127.0.0.1:6379
#以memcache方式储存
#sessionprovider=memcache
#sessionproviderconfig=127.0.0.1:11211
#以内存方式托管Session
#sessionprovider=memory
#时区设置
timezone = Asia/Shanghai

最低0.47元/天 解锁文章
1493

被折叠的 条评论
为什么被折叠?



