Saul's blog Saul's blog
首页
后端
分布式
前端
更多
分类
标签
归档
友情链接
关于
GitHub (opens new window)

Saul.J.Wu

立身之本,不在高低。
首页
后端
分布式
前端
更多
分类
标签
归档
友情链接
关于
GitHub (opens new window)
  • 面试题

  • 博客搭建

  • 部署相关

    • JenKins和GitLab
    • Linux踩坑记录
    • Yapi搭建
    • docker运行nacos
    • docker开机自启动
    • Ubuntu
    • SpringBoot的Shell发版脚本
    • showdoc
      • 服务器信息
      • 账号
      • 更新apt
      • 安装docker
      • 安装showdoc
    • 禅道搭建
    • Linux访问不了github
  • 填坑

  • Python

  • 其他

  • 收藏夹

  • 友情链接
  • 更多
  • 部署相关
SaulJWu
2021-11-02

showdoc

# 服务器信息

名称 ip 配置
linux-3 192.168.31.96 192.168.31.962核 + 8G内存 + 250G硬盘

# 账号

root
YB@local168
1
2

# 更新apt

apt-get update
apt-get upgrade
1
2

# 安装docker

sudo apt-get remove docker docker-engine docker.io containerd runc

sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
    
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
1
2
3
4
5
6
7
8
9
10
11
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
1
2
3
sudo apt-get update
1
 sudo apt-get install docker-ce docker-ce-cli containerd.io
1

# 安装showdoc

官方文章:Docker方式安装--ShowDoc (opens new window)

#新建存放showdoc数据的目录
mkdir -p /opt/showdoc_data/html
chmod  -R 777 /opt/showdoc_data
# 如果你是想把数据挂载到其他目录,比如说/data1,那么,可以在/data1目录下新建一个showdoc_data/目录,
# 然后在根目录的新建一个软链接/showdoc_data到/data1/showdoc_data
# 这样既能保持跟官方教程推荐的路径一致,又能达到自定义存储的目的.

#启动showdoc容器
docker run -d --name showdoc \
--user=root \
--privileged=true \
-p 4999:80 \
-v /opt/showdoc_data/html:/var/www/html/ \
star7th/showdoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14

根据以上命令操作的话,往后showdoc的数据都会存放在 /showdoc_data/html 目录下。 你可以打开 http://192.168.31.96:4999 (opens new window) 来访问showdoc (192.168.31.96可改为你的服务器域名或者IP)。账户密码是showdoc/123456,登录后你便可以看到右上方的管理后台入口。建议登录后修改密码。 对showdoc的问题或建议请至https://github.com/star7th/showdoc 出提issue。若觉得showdoc好用,不妨点个star。

帮我改善此页面 (opens new window)
上次更新: 2021/11/24, 01:31:20
SpringBoot的Shell发版脚本
禅道搭建

← SpringBoot的Shell发版脚本 禅道搭建→

最近更新
01
zabbix学习笔记二
02-28
02
zabbix学习笔记一
02-10
03
Linux访问不了github
12-08
更多文章>
Theme by Vdoing | Copyright © 2020-2022 Saul.J.Wu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式