搭建属于自己的API接口文档编写工具

2020-11-17   阅读:2720   分类:其它    标签: API

ShowDoc就是一个非常适合IT团队的在线文档分享工具,它可以加快团队之间沟通的效率。本文教大家如何使用自己的服务器搭建showdoc。

一、所需工具

服务器或虚拟主机

环境:需要PHP5.3及以上版本(开启php-gd php-sqlite扩展)

showwdoc

域名

二、码云附件下载:

git clone https://gitee.com/YuJian11/showdoc.git

三、安装教程

3.1、将下载好的文件传到服务器网站web根目录,设置Runtime可写权限

image.png

3.2、解析域名并配置nginx

server
    {  
        listen 80;
        server_name www.example.com;
        index index.php index.html index.htm default.html default.htm default.php;
        root  /wwwroot/ www.example.com/;
        include enable-php7.4.conf;
       
        error_page   404   /404.html;
 
        location ~ [^/]\.php(/|$)
        {
            # comment try_files $uri =404; to enable pathinfo
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
            #include pathinfo.conf;
        }
        location / {
             if (!-e $request_filename) {
               rewrite  ^(.*)$  /index.php?s=/$1  last;
               break;
                }
        }
 
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }
 
        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }
 
        access_log /wwwroot /wwwlogs/www_ example_com.log;
        error_log / wwwroot /wwwlogs/www_example_com.log;
}

3.3、放置好文件后,访问域名www.example.com

3.4、选择语言,这里默认选择中文

image.png

3.5、安装成功显示如下,默认管理员密码,强烈建议修改

image.png

image.png


【腾讯云】 爆款2核2G3M云服务器首年 61元,2核2G4M云服务器新老同享 99元/年,续费同价

‘简忆博客’微信公众号 扫码关注‘简忆博客’微信公众号,获取最新文章动态
转载:请说明文章出处“来源简忆博客”。http://tpxhm.com/odetail/510.html

×
觉得文章有用就打赏一下文章作者
微信扫一扫打赏 微信扫一扫打赏
支付宝扫一扫打赏 支付宝扫一扫打赏

文章评论(0)

登录
简忆博客壁纸一
简忆博客壁纸二
简忆博客壁纸三
简忆博客壁纸四
简忆博客壁纸五
简忆博客壁纸六
简忆博客壁纸七
简忆博客壁纸八
头像

简忆博客
勤于学习,乐于分享

置顶推荐

打赏本站

如果你觉得本站很棒,可以通过扫码支付打赏哦!
微信扫码:你说多少就多少~
微信扫码
支付宝扫码:你说多少就多少~
支付宝扫码
×