forked from judasn/Linux-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Showdoc 安装和配置 | ||
|
||
## Showdoc 介绍 | ||
|
||
- 官网:<https://www.showdoc.cc/web/#/> | ||
- Github:<https://github.com/star7th/showdoc> | ||
- 当前(201804)最新版:2.0.7 | ||
|
||
## Docker 下安装 Showdoc | ||
|
||
- 场景: | ||
- 我的 git 数据目录地址 /opt/git-data | ||
- 创建宿主机数据存储目录并赋权:`mkdir -p /data/docker/showdoc/ && chmod 777 -R /data/docker/showdoc` | ||
- clone 官网源码:`git clone --depth=1 https://github.com/star7th/showdoc.git` | ||
- 进入源码目录:`cd /opt/git-data/showdoc` | ||
- 构建 docker 镜像:`docker build -t showdoc ./` | ||
- 运行镜像:`docker run -d --name showdoc -p 4999:80 showdoc` | ||
- 浏览器输入:`http://47.106.127.131:4999/install`,进行程序的初始化,其实就是让你选择语言和几个提示 | ||
- 注意: | ||
- 容器中的数据存放目录为:`/var/www/html`,其中 | ||
- 数据库文件:`/var/www/html/Sqlite/sqlite.db.php` | ||
- 图片:`/var/www/html/Public/Uploads` | ||
- 后续需要升级系统,更换服务器需要迁移这两个目录下的文件。 | ||
- 网站首页地址:<http://47.106.127.131:4999/web/#/> | ||
- 没有什么系统管理员用户的概念,需要自己注册 |