-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5978735e.html
1 lines (1 loc) · 138 KB
/
5978735e.html
1
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><title>Ubuntu系统安装基本Nginx和docker和一些其他的软件的基本操作 | 梦洁小站-属于你我的小天地</title><meta name="author" content="梦洁"><meta name="copyright" content="梦洁"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="前言 系统使用Ubuntu20.4 华为云 安装nginx(如果需要NginxWebUI,就不这样子安装)12345#安装apt install nginx#查看版本nginx -v 安装Nginx Proxy Manager 官网https://nginxproxymanager.com/ docker-compuse部署 123456789101112version: '3"><meta property="og:type" content="article"><meta property="og:title" content="Ubuntu系统安装基本Nginx和docker和一些其他的软件的基本操作"><meta property="og:url" content="https://www.dreamlove.top/5978735e.html"><meta property="og:site_name" content="梦洁小站-属于你我的小天地"><meta property="og:description" content="前言 系统使用Ubuntu20.4 华为云 安装nginx(如果需要NginxWebUI,就不这样子安装)12345#安装apt install nginx#查看版本nginx -v 安装Nginx Proxy Manager 官网https://nginxproxymanager.com/ docker-compuse部署 123456789101112version: '3"><meta property="og:locale" content="zh_CN"><meta property="og:image" content="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091726513.png"><meta property="article:published_time" content="2023-03-27T09:32:37.000Z"><meta property="article:modified_time" content="2023-04-03T09:32:37.000Z"><meta property="article:author" content="梦洁"><meta property="article:tag" content="系统"><meta name="twitter:card" content="summary"><meta name="twitter:image" content="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091726513.png"><link rel="shortcut icon" href="https://oss.dreamlove.top/i/2024/02/02/nw24wu.png"><link rel="canonical" href="https://www.dreamlove.top/5978735e.html"><link rel="preconnect" href="https://lib.baomitu.com"><link rel="preconnect" href="//busuanzi.ibruce.info"><link rel="stylesheet" href="/css/index.css?v=4.13.0"><link rel="stylesheet" href="https://lib.baomitu.com/font-awesome/6.5.1/css/all.min.css"><link rel="stylesheet" href="https://lib.baomitu.com/fancyapps-ui/5.0.33/fancybox/fancybox.min.css" media="print" onload='this.media="all"'><script>const GLOBAL_CONFIG={root:"/",algolia:{appId:"G7A2D1SYPY",apiKey:"49056313a9be02852c7dbedfcb772831",indexName:"blog",hits:{per_page:20},languages:{input_placeholder:"搜索文章",hits_empty:"找不到您查询的内容:${query}",hits_stats:"找到 ${hits} 条结果,用时 ${time} 毫秒"}},localSearch:void 0,translate:void 0,noticeOutdate:void 0,highlight:{plugin:"highlight.js",highlightCopy:!0,highlightLang:!0,highlightHeightLimit:!1},copy:{success:"复制成功",error:"复制错误",noSupport:"浏览器不支持"},relativeDate:{homepage:!1,post:!1},runtime:"天",dateSuffix:{just:"刚刚",min:"分钟前",hour:"小时前",day:"天前",month:"个月前"},copyright:void 0,lightbox:"fancybox",Snackbar:void 0,infinitegrid:{js:"https://lib.baomitu.com/egjs-infinitegrid/4.11.1/infinitegrid.min.js",buttonText:"加载更多"},isPhotoFigcaption:!1,islazyload:!1,isAnchor:!1,percent:{toc:!0,rightside:!1},autoDarkmode:!1}</script><script id="config-diff">var GLOBAL_CONFIG_SITE={title:"Ubuntu系统安装基本Nginx和docker和一些其他的软件的基本操作",isPost:!0,isHome:!1,isHighlightShrink:!1,isToc:!0,postUpdate:"2023-04-03 09:32:37"}</script><script>(e=>{e.saveToLocal={set:(e,t,o)=>{if(0===o)return;const a={value:t,expiry:Date.now()+864e5*o};localStorage.setItem(e,JSON.stringify(a))},get:e=>{const t=localStorage.getItem(e);if(!t)return;const o=JSON.parse(t);if(!(Date.now()>o.expiry))return o.value;localStorage.removeItem(e)}},e.getScript=(e,t={})=>new Promise((o,a)=>{const n=document.createElement("script");n.src=e,n.async=!0,n.onerror=a,n.onload=n.onreadystatechange=function(){const e=this.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,o())},Object.keys(t).forEach(e=>{n.setAttribute(e,t[e])}),document.head.appendChild(n)}),e.getCSS=(e,t=!1)=>new Promise((o,a)=>{const n=document.createElement("link");n.rel="stylesheet",n.href=e,t&&(n.id=t),n.onerror=a,n.onload=n.onreadystatechange=function(){const e=this.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,o())},document.head.appendChild(n)}),e.activateDarkMode=()=>{document.documentElement.setAttribute("data-theme","dark"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#0d0d0d")},e.activateLightMode=()=>{document.documentElement.setAttribute("data-theme","light"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#ffffff")};const t=saveToLocal.get("theme");"dark"===t?activateDarkMode():"light"===t&&activateLightMode();const o=saveToLocal.get("aside-status");void 0!==o&&("hide"===o?document.documentElement.classList.add("hide-aside"):document.documentElement.classList.remove("hide-aside"));/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)&&document.documentElement.classList.add("apple")})(window)</script><meta name="generator" content="Hexo 7.1.1"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://oss.dreamlove.top/i/2024/02/02/nw24wu.png" onerror='onerror=null,src="/img/404.png"' alt="avatar"></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">176</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">101</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">73</div></a></div><hr class="custom-hr"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友情和链接</span></a></div><div class="menus_item"><a class="site-page" href="/navigation/"><i class="fa-fw fas fa-link"></i><span> 链接导航</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 私有化导航</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://mark.123916.xyz/"><i class="fa-fw fas fa-database"></i><span> 导航</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://cloud.reassurehome.com/"><i class="fa-fw fas fa-hippo"></i><span> Alist(私有)</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://short.123916.xyz/027a2"><i class="fa-fw fas fa-paperclip"></i><span> clash免费订阅地址</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://short.123916.xyz/admin/"><i class="fa-fw fas fa-paperclip"></i><span> 短链接生成</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 好玩的</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://make.girls.moe/#/"><i class="fa-fw fas fa-database"></i><span> 动漫头像制作</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://dfqshy.ysepan.com/"><i class="fa-fw fas fa-database"></i><span> FC游戏大全网盘</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.yikm.net/"><i class="fa-fw fas fa-database"></i><span> 小霸王</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.return8090.com/"><i class="fa-fw fas fa-database"></i><span> 小霸王(广告多)</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://farm.dreamlove.top"><i class="fa-fw fas fa-database"></i><span> QQ农场经典版</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://codepip.com/"><i class="fa-fw fas fa-database"></i><span> CssGame</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://photo.123916.xyz/"><i class="fa-fw fas fa-database"></i><span> 有趣的照片</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 其他</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></li><li><a class="site-page child" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://buy.dreamlove.top/"><i class="fa-fw fas fa-heart"></i><span> 购物</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image:url(https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091726513.png)"><nav id="nav"><span id="blog-info"><a href="/" title="梦洁小站-属于你我的小天地"><span class="site-name">梦洁小站-属于你我的小天地</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友情和链接</span></a></div><div class="menus_item"><a class="site-page" href="/navigation/"><i class="fa-fw fas fa-link"></i><span> 链接导航</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 私有化导航</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://mark.123916.xyz/"><i class="fa-fw fas fa-database"></i><span> 导航</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://cloud.reassurehome.com/"><i class="fa-fw fas fa-hippo"></i><span> Alist(私有)</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://short.123916.xyz/027a2"><i class="fa-fw fas fa-paperclip"></i><span> clash免费订阅地址</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://short.123916.xyz/admin/"><i class="fa-fw fas fa-paperclip"></i><span> 短链接生成</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 好玩的</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://make.girls.moe/#/"><i class="fa-fw fas fa-database"></i><span> 动漫头像制作</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://dfqshy.ysepan.com/"><i class="fa-fw fas fa-database"></i><span> FC游戏大全网盘</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.yikm.net/"><i class="fa-fw fas fa-database"></i><span> 小霸王</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.return8090.com/"><i class="fa-fw fas fa-database"></i><span> 小霸王(广告多)</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://farm.dreamlove.top"><i class="fa-fw fas fa-database"></i><span> QQ农场经典版</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://codepip.com/"><i class="fa-fw fas fa-database"></i><span> CssGame</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://photo.123916.xyz/"><i class="fa-fw fas fa-database"></i><span> 有趣的照片</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 其他</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></li><li><a class="site-page child" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://buy.dreamlove.top/"><i class="fa-fw fas fa-heart"></i><span> 购物</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Ubuntu系统安装基本Nginx和docker和一些其他的软件的基本操作</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-03-27T09:32:37.000Z" title="发表于 2023-03-27 09:32:37">2023-03-27</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-04-03T09:32:37.000Z" title="更新于 2023-04-03 09:32:37">2023-04-03</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E7%B3%BB%E7%BB%9F/">系统</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">4.3k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>20分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" data-flag-title="Ubuntu系统安装基本Nginx和docker和一些其他的软件的基本操作"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><ul><li>系统使用Ubuntu20.4</li><li>华为云</li></ul><h2 id="安装nginx-如果需要NginxWebUI-就不这样子安装"><a href="#安装nginx-如果需要NginxWebUI-就不这样子安装" class="headerlink" title="安装nginx(如果需要NginxWebUI,就不这样子安装)"></a>安装nginx(如果需要NginxWebUI,就不这样子安装)</h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装</span></span><br><span class="line">apt install nginx</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看版本</span></span><br><span class="line">nginx -v</span><br></pre></td></tr></table></figure><h2 id="安装Nginx-Proxy-Manager"><a href="#安装Nginx-Proxy-Manager" class="headerlink" title="安装Nginx Proxy Manager"></a>安装Nginx Proxy Manager</h2><ul><li><p>官网<a target="_blank" rel="noopener" href="https://nginxproxymanager.com/">https://nginxproxymanager.com/</a></p></li><li><p>docker-compuse部署</p></li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">version: '3.8'</span><br><span class="line">services:</span><br><span class="line"> app:</span><br><span class="line"> image: 'jc21/nginx-proxy-manager:latest'</span><br><span class="line"> restart: unless-stopped</span><br><span class="line"> ports:</span><br><span class="line"> - '80:80'</span><br><span class="line"> - '81:81'</span><br><span class="line"> - '443:443'</span><br><span class="line"> volumes:</span><br><span class="line"> - ./data:/data</span><br><span class="line"> - ./letsencrypt:/etc/letsencrypt</span><br></pre></td></tr></table></figure><ul><li>登录<a target="_blank" rel="noopener" href="http://127.0.0.1:81/">http://127.0.0.1:81</a></li><li>默认用户名和密码</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">Email: [email protected]</span><br><span class="line">Password: changeme</span><br></pre></td></tr></table></figure><h2 id="安装docker和docker-compose"><a href="#安装docker和docker-compose" class="headerlink" title="安装docker和docker-compose"></a>安装docker和docker-compose</h2><h3 id="安装docker"><a href="#安装docker" class="headerlink" title="安装docker"></a>安装docker</h3><ul><li>官方的一键安装方式:</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun</span><br><span class="line"></span><br><span class="line">或者</span><br><span class="line">curl -fsSL https://get.docker.com | bash -s docker</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看版本</span></span><br><span class="line">docker -v</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">Docker version 23.0.1, build a5ee5b1</span></span><br></pre></td></tr></table></figure><ul><li>国内 daocloud一键安装命令:<ul><li>官网都打不开了,不知道为啥,所以估计这个命名过不了多久就没有用</li></ul></li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装</span></span><br><span class="line">curl -sSL https://get.daocloud.io/docker | sh</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看版本</span></span><br><span class="line">docker -v</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">Docker version 23.0.1, build a5ee5b1</span></span><br></pre></td></tr></table></figure><ul><li>设置docker镜像</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">sudo mkdir -p /etc/docker</span><br><span class="line">sudo tee /etc/docker/daemon.json <<-'EOF'</span><br><span class="line">{</span><br><span class="line"> "registry-mirrors": ["https://49qfdqkg.mirror.aliyuncs.com"]</span><br><span class="line">}</span><br><span class="line">EOF</span><br><span class="line">sudo systemctl daemon-reload</span><br><span class="line">sudo systemctl restart docker</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看配置是否生效</span></span><br><span class="line">docker info</span><br><span class="line"></span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202303201702417.png"></p><ul><li>如果出现这个问题<code>Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</code></li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">#重新启动</span><br><span class="line">systemctl restart docker.service</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">#开机启动</span><br><span class="line">systemctl enable docker</span><br></pre></td></tr></table></figure><h3 id="安装docker-compose"><a href="#安装docker-compose" class="headerlink" title="安装docker-compose"></a>安装docker-compose</h3><ul><li>官网安装介绍<ul><li><a target="_blank" rel="noopener" href="https://docs.docker.com/compose/install/other/">https://docs.docker.com/compose/install/other/</a></li><li><strong>最新版看官网的安装</strong></li></ul></li><li>注意,2.17版本更变了使用命令好像,运行的也是</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">#2.17版本</span><br><span class="line">docker compose up -d</span><br><span class="line"></span><br></pre></td></tr></table></figure><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">直接下载(国外ip)</span></span><br><span class="line">curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">使用代理加速下载(国内ip)</span></span><br><span class="line">curl -SL https://ghproxy.com/https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看版本</span></span><br><span class="line">docker-compose -v</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">Docker Compose version v2.16.0</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">如果出现docker-compose -v Docker Compose version v2.16.0</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">执行下面命令即可</span></span><br><span class="line">chmod +x /usr/local/bin/docker-compose</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">接着查看版本,可以正常查看</span></span><br><span class="line">docker-compose -v</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">Docker Compose version v2.16.0</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">或者</span></span><br><span class="line">docker compose version</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">Docker Compose version v2.17.3</span></span><br></pre></td></tr></table></figure><h2 id="安装NginxWebUI-Nginx可视化工具"><a href="#安装NginxWebUI-Nginx可视化工具" class="headerlink" title="安装NginxWebUI(Nginx可视化工具)"></a>安装NginxWebUI(Nginx可视化工具)</h2><ul><li>docker运行</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装java运行环境</span></span><br><span class="line">apt install openjdk-8-jdk</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">启动容器</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">端口可以自己更改</span></span><br><span class="line">docker run -itd -v /home/nginxWebUI:/home/nginxWebUI -e BOOT_OPTIONS="--server.port=9764" --privileged=true --net=host --restart=always cym1102/nginxwebui:latest </span><br></pre></td></tr></table></figure><ul><li>访问<ul><li><a target="_blank" rel="noopener" href="http://localhost:9764/adminPage/login">http://localhost:9764/adminPage/login</a></li></ul></li></ul><h2 id="安装nodejs-使用NVM管理"><a href="#安装nodejs-使用NVM管理" class="headerlink" title="安装nodejs(使用NVM管理)"></a>安装nodejs(使用NVM管理)</h2><ul><li>使用nvm,这样子可以帮助我们管理nodejs版本<ul><li>官网: <a target="_blank" rel="noopener" href="https://github.com/nvm-sh/nvm">https://github.com/nvm-sh/nvm</a></li></ul></li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">国外IP</span></span><br><span class="line">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">国内IP</span></span><br><span class="line">curl -o- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash</span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202303201457423.png"></p><ul><li>安装完成后,如果输入<code>nvm回车后提示command not found</code>,则关闭当前终端,打开一个新终端,然后再次尝试验证</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看nvm版本</span></span><br><span class="line">nvm -v</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">0.39.3</span></span><br></pre></td></tr></table></figure><ul><li>安装nvm后安装nodejs</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装指定版本</span></span><br><span class="line">nvm install 16.19.1</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装最新版</span></span><br><span class="line">nvm install node # "node" is an alias for the latest version</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看安装了哪些版本</span></span><br><span class="line">nvm ls</span><br></pre></td></tr></table></figure><ul><li>更换淘宝镜像源地址</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置地址</span></span><br><span class="line">npm config set registry https://registry.npm.taobao.org/</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看镜像源的地址</span></span><br><span class="line">npm config get registry npm</span><br></pre></td></tr></table></figure><h2 id="安装自己常用docker"><a href="#安装自己常用docker" class="headerlink" title="安装自己常用docker"></a>安装自己常用docker</h2><h3 id="学习强国"><a href="#学习强国" class="headerlink" title="学习强国"></a>学习强国</h3><h4 id="拉取镜像-也可以直接去部署"><a href="#拉取镜像-也可以直接去部署" class="headerlink" title="拉取镜像(也可以直接去部署)"></a>拉取镜像(也可以直接去部署)</h4><h4 id="2023年3月26日14-33-45-更换新方法"><a href="#2023年3月26日14-33-45-更换新方法" class="headerlink" title="2023年3月26日14.33.45 更换新方法"></a>2023年3月26日14.33.45 更换新方法</h4><ul><li>docker-compose 部署</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">version: "3.5"</span><br><span class="line">services:</span><br><span class="line"> xuexi-auto:</span><br><span class="line"> image: xlh001/study_xxqg:latest</span><br><span class="line"> # 容器名</span><br><span class="line"> container_name: xuexi-auto</span><br><span class="line"> environment:</span><br><span class="line"> # 时区</span><br><span class="line"> - TZ=Asia/Shanghai</span><br><span class="line"> # 配置文件路径</span><br><span class="line"> volumes:</span><br><span class="line"> - ./config:/opt/config</span><br><span class="line"> # 映射端口</span><br><span class="line"> ports:</span><br><span class="line"> - 1234:8080</span><br><span class="line"> restart: unless-stopped</span><br></pre></td></tr></table></figure><h4 id="2023年3月24日14-32-45下面这种失效了"><a href="#2023年3月24日14-32-45下面这种失效了" class="headerlink" title="2023年3月24日14.32.45下面这种失效了"></a>2023年3月24日14.32.45下面这种失效了</h4><ul><li>x86 处理器镜像</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/wxyhgk/xxgq:2.0</span><br></pre></td></tr></table></figure><ul><li>arm处理器镜像</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker pull registry.cn-hangzhou.aliyuncs.com/wxyhgk/xxqg_arm:1.0</span><br></pre></td></tr></table></figure><h4 id="部署"><a href="#部署" class="headerlink" title="部署"></a>部署</h4><ul><li>x86 处理器<ul><li><code>-p 1234:8080</code>表示内部8080端口映射到外部(服务器)1234端口</li></ul></li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">docker run \</span><br><span class="line">--name study_xxqg \</span><br><span class="line">-d \</span><br><span class="line">-p 1234:8080 \</span><br><span class="line">-v /etc/study_xxqg/:/opt/config/ \</span><br><span class="line">--restart unless-stopped \</span><br><span class="line">registry.cn-hangzhou.aliyuncs.com/wxyhgk/xxgq:2.0</span><br></pre></td></tr></table></figure><ul><li>arm处理器</li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">docker run \</span><br><span class="line">--name study_xxqg \</span><br><span class="line">-d \</span><br><span class="line">-p 1234:8080 \</span><br><span class="line">-v /etc/study_xxqg/:/opt/config/ \</span><br><span class="line">--restart unless-stopped \</span><br><span class="line">registry.cn-hangzhou.aliyuncs.com/wxyhgk/xxqg_arm:1.0</span><br></pre></td></tr></table></figure><ul><li>含义</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">—name 表示名字 ,名字是 study_xxqg</span><br><span class="line">-d 表示后台运行</span><br><span class="line">-p 1234:8080 表示将 容器内部的 8080 端口映射到主机的 1234 端口</span><br><span class="line">-v /etc/study_xxqg/:/opt/config/ 表示将 本机的 /etc/study_xxqg/ 映射到 docker 镜像的 /opt/config/ 下</span><br><span class="line">registry.cn-hangzhou.aliyuncs.com/wxyhgk/xxgq:1.0 表示拉取这个镜像</span><br><span class="line">--restart unless-stopped \ 表示重启docker后会启动此容器</span><br></pre></td></tr></table></figure><h4 id="完成和其他配置"><a href="#完成和其他配置" class="headerlink" title="完成和其他配置"></a>完成和其他配置</h4><ul><li>完成后登录浏览器输入服务器IP地址:1234即可<ul><li>默认账号密码为admin,admin</li></ul></li><li>其他配置请看此博主写的<ul><li><a target="_blank" rel="noopener" href="https://wxyhgk.com/article/docker-xxqg">https://wxyhgk.com/article/docker-xxqg</a></li></ul></li></ul><h3 id="安装青龙-docker-compose方式"><a href="#安装青龙-docker-compose方式" class="headerlink" title="安装青龙(docker-compose方式)"></a>安装青龙(docker-compose方式)</h3><ul><li>创建<code>docker-compose.yml</code>文件</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'2'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">ql_web:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">whyour/qinglong:latest</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">ql</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./data/config:/ql/config</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./data/log:/ql/log</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./data/db:/ql/db</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./data/scripts:/ql/scripts</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./data/repo:/ql/repo</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">"0.0.0.0:5700:5700"</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">ENABLE_HANGUP=true</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">ENABLE_WEB_PANEL=true</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br></pre></td></tr></table></figure><ul><li>所在目录下执行</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker-compose up -d </span><br></pre></td></tr></table></figure><ul><li>记得服务器防火墙开放端口<code>5700</code></li><li>浏览器访问<strong>服务器地址:5700</strong></li></ul><h4 id="安装好后安装下依赖-懂得都懂"><a href="#安装好后安装下依赖-懂得都懂" class="headerlink" title="安装好后安装下依赖(懂得都懂)"></a>安装好后安装下依赖(懂得都懂)</h4><ul><li>来源<a target="_blank" rel="noopener" href="https://github.com/FlechazoPh/QLDependency">@青龙面板全依赖一键安装脚本</a><ul><li><a target="_blank" rel="noopener" href="https://github.com/FlechazoPh/QLDependency">https://github.com/FlechazoPh/QLDependency</a></li></ul></li><li>注意,里面的<code>qinglong</code>要根据自己镜像名称来,上面我通过<code>docker-compose</code>安装指定的名称为<code>ql</code>,所以我改为了<code>ql</code></li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">国内版</span></span><br><span class="line">docker exec -it ql bash -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/FlechazoPh/QLDependency/main/Shell/QLOneKeyDependency.sh | sh)"</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">国外版:</span></span><br><span class="line">docker exec -it ql bash -c "$(curl -fsSL https://raw.githubusercontent.com/FlechazoPh/QLDependency/main/Shell/QLOneKeyDependency.sh | sh)"</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">【更新】 版本号 2.12+ 的新版本青龙安装失败请尝试:</span></span><br><span class="line">docker exec -it ql bash -c "$(curl -fsSL https://raw.githubusercontent.com/FlechazoPh/QLDependency/main/Shell/XinQLOneKey.sh | sh)"</span><br><span class="line"></span><br></pre></td></tr></table></figure><ul><li>或者自己安装下</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g png-js date-fns axios crypto-js ts-md5 tslib @types/node requests tough-cookie jsdom download tunnel fs ws form-data js-base64 qrcode-terminal silly-datetime</span><br></pre></td></tr></table></figure><h3 id="安装qbittorrent"><a href="#安装qbittorrent" class="headerlink" title="安装qbittorrent"></a>安装qbittorrent</h3><ul><li><a target="_blank" rel="noopener" href="https://hub.docker.com/r/linuxserver/qbittorrent">@来源</a><ul><li><a target="_blank" rel="noopener" href="https://hub.docker.com/r/linuxserver/qbittorrent">https://hub.docker.com/r/linuxserver/qbittorrent</a></li></ul></li><li>创建<code>docker-compose.yml</code>文件</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">"2.1"</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">qbittorrent:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">lscr.io/linuxserver/qbittorrent:latest</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">qbittorrent</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=1000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=1000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TZ=Etc/UTC</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">WEBUI_PORT=8080</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/path/to/appdata/config:/config</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/path/to/downloads:/downloads</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">8080</span><span class="string">:8080</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">6881</span><span class="string">:6881</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">6881</span><span class="string">:6881/udp</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br><span class="line"> </span><br><span class="line"> <span class="string">如果需要更改端口,可以看看下方注释</span></span><br><span class="line"> </span><br><span class="line"><span class="attr">version:</span> <span class="string">"2"</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">qbittorrent:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">linuxserver/qbittorrent</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">qbittorrent</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=1000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=1000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TZ=Asia/Shanghai</span> <span class="comment"># 你的时区</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UMASK_SET=022</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">WEBUI_PORT=8081</span> <span class="comment"># 将此处修改成你欲使用的 WEB 管理平台端口 </span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/home/qb/config:/config</span> <span class="comment"># 绝对路径请修改为自己的config文件夹</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/home/d:/downloads</span> <span class="comment"># 绝对路径请修改为自己的downloads文件夹</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="comment"># 要使用的映射下载端口与内部下载端口,可保持默认,安装完成后在管理页面仍然可以改成其他端口。</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">6881</span><span class="string">:6881</span> </span><br><span class="line"> <span class="bullet">-</span> <span class="number">6881</span><span class="string">:6881/udp</span></span><br><span class="line"> <span class="comment"># 此处WEB UI 目标端口与内部端口务必保证相同,见问题1</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">8081</span><span class="string">:8081</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br><span class="line"></span><br></pre></td></tr></table></figure><ul><li>所在目录下执行</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker-compose up -d </span><br></pre></td></tr></table></figure><ul><li><p>记得服务器防火墙放行<code>8080</code>和<code>6881</code></p></li><li><p>浏览器访问<strong>服务器地址:8080</strong></p></li><li><p>默认用户名/密码为 <code>admin/adminadmin</code></p></li><li><p>更换中文</p></li></ul><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304261232415.png"></p><h3 id="安装aria2-pro"><a href="#安装aria2-pro" class="headerlink" title="安装aria2-pro"></a>安装aria2-pro</h3><ul><li><a target="_blank" rel="noopener" href="https://p3terx.com/archives/docker-aria2-pro.html">https://p3terx.com/archives/docker-aria2-pro.html</a></li></ul><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line">docker run -d \</span><br><span class="line"> --name aria2-pro \</span><br><span class="line"> --restart unless-stopped \</span><br><span class="line"> --log-opt max-size=1m \</span><br><span class="line"> --network host \</span><br><span class="line"> -e <span class="variable constant_">PUID</span>=$UID \</span><br><span class="line"> -e <span class="variable constant_">PGID</span>=$GID \</span><br><span class="line"> -e <span class="variable constant_">RPC_SECRET</span>=<<span class="variable constant_">TOKEN</span>> \</span><br><span class="line"> -e <span class="variable constant_">RPC_PORT</span>=<span class="number">6800</span> \</span><br><span class="line"> -e <span class="variable constant_">LISTEN_PORT</span>=<span class="number">6888</span> \</span><br><span class="line"> -v $PWD/aria2-<span class="attr">config</span>:/config \</span><br><span class="line"> -v $PWD/aria2-<span class="attr">downloads</span>:/downloads \</span><br><span class="line"> p3terx/aria2-pro</span><br><span class="line"></span><br><span class="line">(自用)</span><br><span class="line">docker run -d \</span><br><span class="line"> --name aria2-pro \</span><br><span class="line"> --restart unless-stopped \</span><br><span class="line"> --log-opt max-size=1m \</span><br><span class="line"> --network host \</span><br><span class="line"> -e <span class="variable constant_">PUID</span>=$UID \</span><br><span class="line"> -e <span class="variable constant_">PGID</span>=$GID \</span><br><span class="line"> -e <span class="variable constant_">RPC_SECRET</span>=<span class="number">112233</span> \</span><br><span class="line"> -e <span class="variable constant_">RPC_PORT</span>=<span class="number">6800</span> \</span><br><span class="line"> -e <span class="variable constant_">LISTEN_PORT</span>=<span class="number">6888</span> \</span><br><span class="line"> -v /onetb/qbitandair/aria2-config/:/config \</span><br><span class="line"> -v /onetb/qbitandair/download/:/downloads \</span><br><span class="line"> p3terx/aria2-pro</span><br></pre></td></tr></table></figure><ul><li>docker-compose</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">"3.8"</span></span><br><span class="line"></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">Aria2-Pro:</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">aria2-pro</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">p3terx/aria2-pro</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=65534</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=65534</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UMASK_SET=022</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RPC_SECRET=P3TERX</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RPC_PORT=6800</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">LISTEN_PORT=6888</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DISK_CACHE=64M</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">IPV6_MODE=false</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UPDATE_TRACKERS=true</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">CUSTOM_TRACKER_URL=</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TZ=Asia/Shanghai</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/onetb/qbittorrent/config/aria2-config:/config</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/onetb/qbittorrent/ariadownload:/downloads</span></span><br><span class="line"><span class="comment"># If you use host network mode, then no port mapping is required.</span></span><br><span class="line"><span class="comment"># This is the easiest way to use IPv6 networks.</span></span><br><span class="line"> <span class="attr">network_mode:</span> <span class="string">host</span></span><br><span class="line"><span class="comment"># network_mode: bridge</span></span><br><span class="line"><span class="comment"># ports:</span></span><br><span class="line"><span class="comment"># - 6800:6800</span></span><br><span class="line"><span class="comment"># - 6888:6888</span></span><br><span class="line"><span class="comment"># - 6888:6888/udp</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br><span class="line"><span class="comment"># Since Aria2 will continue to generate logs, limit the log size to 1M to prevent your hard disk from running out of space.</span></span><br><span class="line"> <span class="attr">logging:</span></span><br><span class="line"> <span class="attr">driver:</span> <span class="string">json-file</span></span><br><span class="line"> <span class="attr">options:</span></span><br><span class="line"> <span class="attr">max-size:</span> <span class="string">1m</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># AriaNg is just a static web page, usually you only need to deploy on a single host.</span></span><br><span class="line"> <span class="attr">AriaNg:</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">ariang</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">p3terx/ariang</span></span><br><span class="line"> <span class="attr">command:</span> <span class="string">--port</span> <span class="number">6880</span> <span class="string">--ipv6</span></span><br><span class="line"> <span class="attr">network_mode:</span> <span class="string">host</span></span><br><span class="line"><span class="comment"># network_mode: bridge</span></span><br><span class="line"><span class="comment"># ports:</span></span><br><span class="line"><span class="comment"># - 6880:6880</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br><span class="line"> <span class="attr">logging:</span></span><br><span class="line"> <span class="attr">driver:</span> <span class="string">json-file</span></span><br><span class="line"> <span class="attr">options:</span></span><br><span class="line"> <span class="attr">max-size:</span> <span class="string">1m</span></span><br></pre></td></tr></table></figure><h3 id="安装alist"><a href="#安装alist" class="headerlink" title="安装alist"></a>安装alist</h3><ul><li>使用<code>docker-compose</code>安装</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.3'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">alist:</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'/etc/alist:/opt/alist/data'</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'5244:5244'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UMASK=022</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">alist</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">'xhofe/alist:latest'</span></span><br><span class="line"></span><br></pre></td></tr></table></figure><p>或者</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.3'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">alist:</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'./data:/opt/alist/data'</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'5244:5244'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UMASK=022</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">alist</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">'xhofe/alist:latest'</span></span><br></pre></td></tr></table></figure><ul><li>所在目录下执行</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker-compose up -d </span><br></pre></td></tr></table></figure><ul><li><p>记得服务器防火墙放行<code>5244</code></p></li><li><p>浏览器<strong>访问服务器地址:5244</strong></p></li><li><p><strong>获取alist默认密码命令</strong></p></li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker exec -it alist ./alist admin</span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202303201906335.png"></p><h3 id="安装subconverter"><a href="#安装subconverter" class="headerlink" title="安装subconverter"></a>安装subconverter</h3><ul><li><p>github地址</p><ul><li><a target="_blank" rel="noopener" href="https://github.com/tindy2013/subconverter">https://github.com/tindy2013/subconverter</a></li></ul></li><li><p>可以搭配sub-web使用</p><ul><li><a target="_blank" rel="noopener" href="https://github.com/CareyWang/sub-web">https://github.com/CareyWang/sub-web</a></li></ul></li><li><p>这里以安装<code>subconverter</code>为例</p></li><li><p>docker安装</p></li></ul><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -d --restart=always -p 25500:25500 tindy2013/subconverter:latest</span><br></pre></td></tr></table></figure><ul><li>docker-compose安装</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.3'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">subconverter:</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'./data:/opt/subconverter/data'</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'25500:25500'</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">subconverter</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">'tindy2013/subconverter:latest'</span></span><br><span class="line"> </span><br></pre></td></tr></table></figure><h3 id="安装短链接Yourls"><a href="#安装短链接Yourls" class="headerlink" title="安装短链接Yourls"></a>安装短链接Yourls</h3><ul><li>docker-compose方式</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">"3.5"</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">mysql:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">mysql:5.7.22</span> <span class="comment"># 如果遇到不正确的数据库配置,或无法连接到数据库PDOException: SQLSTATE[HY000] [1045] 用户'yourls'@'yourls_service.yourls_default'的访问被拒绝(使用密码:是) 可以把5.7.22 改为 5.7</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_ROOT_PASSWORD=my-secret-pw</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_DATABASE=yourls</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_USER=yourls</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_PASSWORD=yourls</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./mysql/db/:/var/lib/mysql</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./mysql/conf/:/etc/mysql/conf.d</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">mysql</span></span><br><span class="line"> </span><br><span class="line"> <span class="attr">yourls:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">yourls</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">"8200:80"</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="attr">YOURLS_DB_HOST:</span> <span class="string">mysql</span></span><br><span class="line"> <span class="attr">YOURLS_DB_USER:</span> <span class="string">yourls</span></span><br><span class="line"> <span class="attr">YOURLS_DB_PASS:</span> <span class="string">yourls</span></span><br><span class="line"> <span class="attr">YOURLS_DB_NAME:</span> <span class="string">yourls</span></span><br><span class="line"> <span class="attr">YOURLS_USER:</span> <span class="string">admin</span> <span class="comment"># 自己起一个名字</span></span><br><span class="line"> <span class="attr">YOURLS_PASS:</span> <span class="string">admin</span> <span class="comment"># 自己换一个登陆密码</span></span><br><span class="line"> <span class="attr">YOURLS_SITE:</span> <span class="string">https://gao.ee</span> <span class="comment"># 换成你自己的域名</span></span><br><span class="line"> <span class="attr">YOURLS_HOURS_OFFSET:</span> <span class="number">8</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./yourls_data/:/var/www/html</span> </span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">yourls_service</span></span><br><span class="line"> <span class="attr">links:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">mysql:mysql</span></span><br><span class="line"></span><br></pre></td></tr></table></figure><ul><li><p>防火墙开启端口8200和3306端口</p></li><li><p>访问网站即可</p><ul><li><a target="_blank" rel="noopener" href="https://gao.ee/admin">https://gao.ee/admin</a></li></ul></li><li><p>如果需要配置所有人都可以访问,只需要添加变量<code>YOURLS_PRIVATE</code>为false即可</p><ul><li>具体可看<a target="_blank" rel="noopener" href="https://yourls.org/docs/guide/essentials/private-or-public">https://yourls.org/docs/guide/essentials/private-or-public</a></li></ul></li><li><p>也可以看此博主的安装yourls教程</p><ul><li><a target="_blank" rel="noopener" href="https://blog.laoda.de/archives/docker-compose-install-yourls">https://blog.laoda.de/archives/docker-compose-install-yourls</a></li></ul></li><li><p>需要中文也可以看看此github</p><ul><li><a target="_blank" rel="noopener" href="https://github.com/coppea/yourls-zh_CN">https://github.com/coppea/yourls-zh_CN</a></li></ul><p></p></li><li><p>需要更换主题可以看看这</p><ul><li><a target="_blank" rel="noopener" href="https://github.com/YOURLS/awesome#themes">https://github.com/YOURLS/awesome#themes</a></li><li>安装Sleeky主题出现样式问题可以按照这个人说的做</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">把sleeky-frontend/frontend/header.php中的第15行左右的代码改为下面</span><br><span class="line"></span><br><span class="line">#原先的</span><br><span class="line"><link rel="stylesheet" href="<?php echo $YOURLS_SITE ?>/frontend/dist/styles.css"></span><br><span class="line"></span><br><span class="line">#改为下面这个</span><br><span class="line"><link rel="stylesheet" href="/frontend/dist/styles.css"></span><br></pre></td></tr></table></figure></li></ul><h3 id="安装shlink"><a href="#安装shlink" class="headerlink" title="安装shlink"></a>安装shlink</h3><ul><li>docker-compose部署</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.8'</span></span><br><span class="line"></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">shlink:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">shlinkio/shlink:stable</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">shlink</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'127.0.0.1:8200:8080'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DEFAULT_DOMAIN=omgl.xyz</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">IS_HTTPS_ENABLED=true</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">GEOLITE_LICENSE_KEY=GEOLITE_LICENSE_KEY</span> <span class="string">需要在</span> <span class="string">Maxmind</span> <span class="string">注册帐号获取</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_DRIVER=maria</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_NAME=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_USER=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_PASSWORD=随机密码1</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_HOST=db</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_PORT=3306</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TIMEZONE=UTC</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">REDIRECT_STATUS_CODE=301</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">db:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">mariadb:10.6</span></span><br><span class="line"> <span class="attr">depends_on:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">shlink</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">db</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'127.0.0.1:3306:3306'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_ROOT_PASSWORD=随机</span> <span class="string">root</span> <span class="string">密码</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_DATABASE=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_USER=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_PASSWORD=随机密码1</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/opt/shlink/data:/var/lib/mysql</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">shlink-web-client:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">shlinkio/shlink-web-client:stable</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">shlink-web-client</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'127.0.0.1:9765:80'</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br></pre></td></tr></table></figure><ul><li>然后获取一个 API Key:</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker exec -it shlink shlink api-key:generate</span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022118518.png"></p><ul><li>配置Nginx,步骤略</li></ul><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304031138716.png"></p><ul><li>如果需要预设server,可以为<code>shlink-web-client:</code>添加下方变量</li><li>参考:<a target="_blank" rel="noopener" href="https://shlink.io/documentation/shlink-web-client/pre-configuring-servers/">https://shlink.io/documentation/shlink-web-client/pre-configuring-servers/</a></li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">通过环境变量为默认服务器提供配置。当容器启动时,它将servers.json基于它们动态构建文件。(自 shlink-web-client 3.2.0 起)。</span><br><span class="line">SHLINK_SERVER_URL:Shlink 服务器的完全限定 URL。</span><br><span class="line">SHLINK_SERVER_API_KEY:API 密钥。</span><br><span class="line">SHLINK_SERVER_NAME:要显示的名称。如果未提供,则默认为Shlink。 </span><br><span class="line">docker run \</span><br><span class="line"> --name shlink-web-client \</span><br><span class="line"> -p 8000:80 \</span><br><span class="line"> -e SHLINK_SERVER_URL=https://s.test \</span><br><span class="line"> -e SHLINK_SERVER_API_KEY=6aeb82c6-e275-4538-a747-31f9abfba63c \</span><br><span class="line"> shlinkio/shlink-web-client</span><br></pre></td></tr></table></figure><ul><li>如果是docker-compose配置添加默认环境的话也可以,但是莫名其妙没有成功,这里就使用下面的配置,结合<code>config</code>文件来配置了</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.8'</span></span><br><span class="line"></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">shlink:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">shlinkio/shlink:stable</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">shlink</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'127.0.0.1:8200:8080'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DEFAULT_DOMAIN=omgl.xyz</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">IS_HTTPS_ENABLED=true</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">GEOLITE_LICENSE_KEY=GEOLITE_LICENSE_KEY</span> <span class="string">需要在</span> <span class="string">Maxmind</span> <span class="string">注册帐号获取</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_DRIVER=maria</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_NAME=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_USER=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_PASSWORD=随机密码1</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_HOST=db</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DB_PORT=3306</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TIMEZONE=UTC</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">REDIRECT_STATUS_CODE=301</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">db:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">mariadb:10.6</span></span><br><span class="line"> <span class="attr">depends_on:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">shlink</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">db</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'127.0.0.1:3306:3306'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_ROOT_PASSWORD=随机</span> <span class="string">root</span> <span class="string">密码</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_DATABASE=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_USER=shlink</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">MYSQL_PASSWORD=随机密码1</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/opt/shlink/data:/var/lib/mysql</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">shlink-web-client:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">shlinkio/shlink-web-client:stable</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">shlink-web-client</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">./config/:/usr/share/nginx/html/conf.d/</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'127.0.0.1:9765:80'</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">always</span></span><br></pre></td></tr></table></figure><ul><li>在docker-compose.yml下的文件夹<code>config</code>建立<code>servers.json</code>文件,内容格式如下</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">[</span><br><span class="line"> {</span><br><span class="line"> "name": "服务器名称",</span><br><span class="line"> "url": "https://xxxxx.xxxxxxxxxx",</span><br><span class="line"> "apiKey": "执行获取的api"</span><br><span class="line"> }</span><br><span class="line">]</span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022149744.png" alt="image-20230402214930699"></p><ul><li>成功添加默认服务器</li></ul><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022148078.png" alt="image-20230402214802003"></p><ul><li>参考网站<ul><li><a target="_blank" rel="noopener" href="https://u.sb/docker-shlink/">https://u.sb/docker-shlink/</a></li><li>官方API:<a target="_blank" rel="noopener" href="https://shlink.io/documentation/">https://shlink.io/documentation/</a></li></ul></li></ul><h3 id="安装heimdall"><a href="#安装heimdall" class="headerlink" title="安装heimdall"></a>安装heimdall</h3><ul><li><p>官网</p><ul><li><a target="_blank" rel="noopener" href="https://github.com/linuxserver/Heimdall">https://github.com/linuxserver/Heimdall</a></li></ul></li><li><p>具体部署看</p><ul><li><a target="_blank" rel="noopener" href="https://hub.docker.com/r/linuxserver/heimdall/">https://hub.docker.com/r/linuxserver/heimdall/</a></li></ul></li><li><p>docker-compose</p></li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">"2.1"</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">heimdall:</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">lscr.io/linuxserver/heimdall:latest</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">heimdall</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=1000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=1000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TZ=Etc/UTC</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">/path/to/appdata/config:/config</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">80</span><span class="string">:80</span></span><br><span class="line"> <span class="bullet">-</span> <span class="number">443</span><span class="string">:443</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br></pre></td></tr></table></figure><ul><li>docker</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">docker</span> <span class="string">run</span> <span class="string">-d</span> <span class="string">\</span></span><br><span class="line"> <span class="string">--name=heimdall</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-e</span> <span class="string">PUID=1000</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-e</span> <span class="string">PGID=1000</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-e</span> <span class="string">TZ=Etc/UTC</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-p</span> <span class="number">80</span><span class="string">:80</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-p</span> <span class="number">443</span><span class="string">:443</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-v</span> <span class="string">/path/to/appdata/config:/config</span> <span class="string">\</span></span><br><span class="line"> <span class="string">--restart</span> <span class="string">unless-stopped</span> <span class="string">\</span></span><br><span class="line"> <span class="string">lscr.io/linuxserver/heimdall:latest</span></span><br></pre></td></tr></table></figure><ul><li>自己用的</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">docker</span> <span class="string">run</span> <span class="string">-d</span> <span class="string">\</span></span><br><span class="line"> <span class="string">--name=heimdall</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-e</span> <span class="string">PUID=1000</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-e</span> <span class="string">PGID=1000</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-e</span> <span class="string">TZ=Etc/UTC</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-p</span> <span class="number">84</span><span class="string">:80</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-p</span> <span class="number">5243</span><span class="string">:443</span> <span class="string">\</span></span><br><span class="line"> <span class="string">-v</span> <span class="string">/path/to/appdata/config:/config</span> <span class="string">\</span></span><br><span class="line"> <span class="string">--restart</span> <span class="string">unless-stopped</span> <span class="string">\</span></span><br><span class="line"> <span class="string">lscr.io/linuxserver/heimdall:latest</span></span><br></pre></td></tr></table></figure><h3 id="安装nastool"><a href="#安装nastool" class="headerlink" title="安装nastool"></a>安装nastool</h3><ul><li>docker</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -d --name nas-tools --hostname nas-tools --network=host -p 3000:3000 -v /nastool/config:/config -v /nastools:/nastools -e PUID=0 -e PGID=0 -e UMASK=000 -e NASTOOL_AUTO_UPDATE=false nastools/nas-tools:2.9.1</span><br></pre></td></tr></table></figure><ul><li>docker-compose</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.3'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">nas-tools:</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">nas-tools</span></span><br><span class="line"> <span class="attr">hostname:</span> <span class="string">nas-tools</span></span><br><span class="line"> <span class="attr">network_mode:</span> <span class="string">host</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'/nastool/config:/config'</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'/nastools:/nastools'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UMASK=000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">NASTOOL_AUTO_UPDATE=false</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">'nastools/nas-tools:2.9.1'</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br><span class="line"> </span><br></pre></td></tr></table></figure><ul><li>自用配置</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.3'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">nas-tools:</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">nas-tools</span></span><br><span class="line"> <span class="attr">hostname:</span> <span class="string">nas-tools</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'9703:3000'</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'./config:/config'</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'./nastools:/nastools'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PGID=0</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">UMASK=000</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">NASTOOL_AUTO_UPDATE=false</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">'nastools/nas-tools:2.9.1'</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br></pre></td></tr></table></figure><ul><li>浏览器访问<ul><li>通过 <a target="_blank" rel="noopener" href="http://ip:3000/">http://ip:3000</a> 访问,默认账号 admin 默认密码 password,初次使用会强制更改密码</li></ul></li></ul><h3 id="安装vertex"><a href="#安装vertex" class="headerlink" title="安装vertex"></a>安装vertex</h3><ul><li><p>官网</p><ul><li><a target="_blank" rel="noopener" href="https://github.com/vertex-app/vertex">https://github.com/vertex-app/vertex</a></li></ul></li><li><p>docker</p></li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">docker run -d \</span><br><span class="line"> --name vertex \</span><br><span class="line"> -v /root/vertex:/vertex \</span><br><span class="line"> -p 3000:3000 \</span><br><span class="line"> -e TZ=Asia/Shanghai \</span><br><span class="line"> --restart unless-stopped \</span><br><span class="line"> lswl/vertex:stable</span><br></pre></td></tr></table></figure><ul><li>docker-compose.yml</li></ul><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">version:</span> <span class="string">'3.3'</span></span><br><span class="line"><span class="attr">services:</span></span><br><span class="line"> <span class="attr">vertex:</span></span><br><span class="line"> <span class="attr">container_name:</span> <span class="string">vertex</span></span><br><span class="line"> <span class="attr">volumes:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'./vertex:/vertex'</span></span><br><span class="line"> <span class="attr">ports:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">'9704:3000'</span></span><br><span class="line"> <span class="attr">environment:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">TZ=Asia/Shanghai</span></span><br><span class="line"> <span class="attr">restart:</span> <span class="string">unless-stopped</span></span><br><span class="line"> <span class="attr">image:</span> <span class="string">'lswl/vertex:stable'</span></span><br></pre></td></tr></table></figure><ul><li>默认账号为admin<ul><li>密码是下图所示的内容</li></ul></li></ul><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202305061732312.png"></p><h2 id="安装screen"><a href="#安装screen" class="headerlink" title="安装screen"></a>安装screen</h2><h3 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">apt-install screen</span><br></pre></td></tr></table></figure><h3 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">screen -ls # 浏览当前有哪些后台作业 类似ls命令,列举出所有对话作业。</span><br><span class="line">screen -S <作业名称> # 新建一个screen作业的名称。</span><br><span class="line">screen -r <作业名称> # 恢复之前的一个screen作业。</span><br><span class="line">screen -d <作业名称> # 挂起该作业</span><br><span class="line">screen -S <作业名称> -X quit # 删除该作业</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">关闭退出</span></span><br><span class="line">exit</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">不关闭退出窗口(这样子就可以一直在后台执行) 快捷键</span></span><br><span class="line">CTRL+A+D</span><br></pre></td></tr></table></figure><h2 id="安装cloudreve"><a href="#安装cloudreve" class="headerlink" title="安装cloudreve"></a>安装cloudreve</h2><ul><li>看官网<ul><li><a target="_blank" rel="noopener" href="https://docs.cloudreve.org/getting-started/install">https://docs.cloudreve.org/getting-started/install</a></li></ul></li><li>我使用的是非docker安装,因为一个挂载块路径的问题</li></ul><h2 id="安装Kavita"><a href="#安装Kavita" class="headerlink" title="安装Kavita"></a>安装Kavita</h2><ul><li>官方wiki<ul><li><a target="_blank" rel="noopener" href="https://wiki.kavitareader.com/en">https://wiki.kavitareader.com/en</a></li></ul></li><li>安装按照教程来就好了,主要是开机启动的问题,<code>kavita.service</code><ul><li>注意:需要将文件夹权限改为<code>777</code></li></ul></li><li>使用官方的配置项莫名其妙启动失败,删除掉用户相关的莫名其妙就好了</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">[Unit]</span><br><span class="line">Description=Kavita Server</span><br><span class="line">After=network.target</span><br><span class="line"></span><br><span class="line">[Service]</span><br><span class="line">Type=simple</span><br><span class="line">WorkingDirectory=/mnt/hdd/Kavita</span><br><span class="line">ExecStart=/mnt/hdd/Kavita/Kavita</span><br><span class="line">TimeoutStopSec=20</span><br><span class="line">KillMode=process</span><br><span class="line">Restart=on-failure</span><br><span class="line"></span><br><span class="line">[Install]</span><br><span class="line">WantedBy=multi-user.target</span><br></pre></td></tr></table></figure><h2 id="安装-Web-File-Browser"><a href="#安装-Web-File-Browser" class="headerlink" title="安装 Web File Browser"></a>安装 Web File Browser</h2><ul><li>📂 Web File Browser</li><li>地址:<ul><li><a target="_blank" rel="noopener" href="https://github.com/filebrowser/filebrowser">https://github.com/filebrowser/filebrowser</a></li></ul></li><li>部署</li></ul><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">docker run --restart=always --name filebrowser -d -v /onetb/qbitandair/download:/srv -v /onetb/filebrowser/filebrowserconfig.json:/etc/config.json -v /onetb/filebrowser/database.db:/etc/database.db -p 2334:80 filebrowser/filebrowser</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">或者</span><br><span class="line">version: '3.3'</span><br><span class="line">services:</span><br><span class="line"> filebrowser:</span><br><span class="line"> restart: always</span><br><span class="line"> container_name: filebrowser</span><br><span class="line"> volumes:</span><br><span class="line"> - '/onetb/qbitandair/download:/srv'</span><br><span class="line"> - '/onetb/filebrowser/filebrowserconfig.json:/etc/config.json'</span><br><span class="line"> - '/onetb/filebrowser/database.db:/etc/database.db'</span><br><span class="line"> ports:</span><br><span class="line"> - '2334:80'</span><br><span class="line"> image: filebrowser/filebrowser</span><br></pre></td></tr></table></figure><ul><li>浏览器访问<ul><li>localhost:2334</li><li>默认账号和密码admin admin</li></ul></li></ul><h2 id="使用root用户在AWS"><a href="#使用root用户在AWS" class="headerlink" title="使用root用户在AWS"></a>使用root用户在AWS</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">#设置password密码</span><br><span class="line">sudo passwd root</span><br><span class="line"></span><br><span class="line">#切换root</span><br><span class="line">su root</span><br><span class="line"></span><br><span class="line">#编辑</span><br><span class="line">vim /root/.ssh/authorized_keys 修改内容,删除ssh-rsa以前的内容如下图,保存退出。</span><br><span class="line">这样fianalshell就可以使用root直接登录了。</span><br><span class="line"></span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202406121035801.png"></p><h2 id="一键设置虚拟内存"><a href="#一键设置虚拟内存" class="headerlink" title="一键设置虚拟内存"></a>一键设置虚拟内存</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">#国外IP</span><br><span class="line">wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh</span><br><span class="line"></span><br><span class="line">#国内IP</span><br><span class="line">wget -O box.sh https://ghproxy.com/https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh</span><br></pre></td></tr></table></figure><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022053402.png"></p><ul><li>选择1.添加SWAP</li></ul><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022054008.png" alt="image-20230402205400924"></p><ul><li>输入数字,单位为MB</li></ul><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022054041.png" alt="输入数字,单位为MB"></p><p><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304022055345.png"></p><h2 id="短链接的一个介绍博客"><a href="#短链接的一个介绍博客" class="headerlink" title="短链接的一个介绍博客"></a>短链接的一个介绍博客</h2><ul><li><a target="_blank" rel="noopener" href="https://blog.csdn.net/wbsu2004/article/details/128929147">https://blog.csdn.net/wbsu2004/article/details/128929147</a></li></ul><blockquote><p>Just-Moh-it/Pckd: The most ⚡️ analytics-intensive 💪 self-hostable 🔗 URL shortener, with an amazing UI 😍<br>地址:<a target="_blank" rel="noopener" href="https://github.com/Just-Moh-it/Pckd">https://github.com/Just-Moh-it/Pckd</a></p></blockquote><blockquote><p>Hello from Pckd - Docs | Pckd - Docs<br>地址:<a target="_blank" rel="noopener" href="https://docs.pckd.me/">https://docs.pckd.me/</a></p></blockquote><blockquote><p>Prebuilt Docker image · Issue #32 · PckdHQ/Pckd<br>地址:<a target="_blank" rel="noopener" href="https://github.com/PckdHQ/Pckd/issues/32">https://github.com/PckdHQ/Pckd/issues/32</a></p></blockquote><blockquote><p>Pckd - The most ⚡️ analytics-intensive 💪 self-hostable 🔗 URL shortener, with an amazing UI 😍 : selfhosted<br>地址:<a target="_blank" rel="noopener" href="https://www.reddit.com/r/selfhosted/comments/srn4wo/pckd_the_most_analyticsintensive_selfhostable_url/">https://www.reddit.com/r/selfhosted/comments/srn4wo/pckd_the_most_analyticsintensive_selfhostable_url/</a></p><p>AboutAn open-source link shortener with built-in analytics + free custom domains.</p><p>地址:<a target="_blank" rel="noopener" href="https://github.com/steven-tey/dub">https://github.com/steven-tey/dub</a></p></blockquote><blockquote><p>Free Modern URL Shortener.</p><p>地址:<a target="_blank" rel="noopener" href="https://github.com/thedevs-network/kutt">https://github.com/thedevs-network/kutt</a></p></blockquote><h2 id="服务器测试"><a href="#服务器测试" class="headerlink" title="服务器测试"></a>服务器测试</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">wget -qO- bench.sh | bash</span><br><span class="line"></span><br><span class="line">或者</span><br><span class="line"></span><br><span class="line">curl -sL bench.sh | bash</span><br><span class="line"></span><br></pre></td></tr></table></figure><h2 id="参考文章"><a href="#参考文章" class="headerlink" title="参考文章"></a>参考文章</h2><ul><li><a target="_blank" rel="noopener" href="https://mp.weixin.qq.com/s?__biz=MjM5NTY1MjY0MQ==&mid=2650860524&idx=3&sn=02dfc31d637f70b066a6ef9842beeac5&chksm=bd017ea28a76f7b466773e68f7dab26e65ffae2918c28aa1d87c84acfc54460a7b82aa57279f&scene=27">Linux安装Docker完整教程</a></li><li><a target="_blank" rel="noopener" href="https://wxyhgk.com/article/docker-xxqg">Docker 搭建自动学习强国</a></li><li><a target="_blank" rel="noopener" href="https://docs.docker.com/compose/">https://docs.docker.com/compose/</a></li><li><a target="_blank" rel="noopener" href="https://docs.docker.com/get-started/">https://docs.docker.com/get-started/</a></li></ul><h2 id="小知识点"><a href="#小知识点" class="headerlink" title="小知识点"></a>小知识点</h2><ul><li>docker-compose指定运行文件</li></ul><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># -f 指定使用的 Compose 模板文件,默认为 docker-compose.yml,可以多次指定,指定多个 yml</span></span><br><span class="line">docker-compose -f docker-compose.yml up -d</span><br></pre></td></tr></table></figure><ul><li>解决宝塔乱码<ul><li><a target="_blank" rel="noopener" href="https://www.xiaodengpao.top/jishu/43.html">https://www.xiaodengpao.top/jishu/43.html</a></li></ul></li></ul></article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://www.dreamlove.top">梦洁</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://www.dreamlove.top/5978735e.html">https://www.dreamlove.top/5978735e.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外,均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://www.dreamlove.top" target="_blank">梦洁小站-属于你我的小天地</a>!</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E7%B3%BB%E7%BB%9F/">系统</a></div><div class="post_share"><div class="social-share" data-image="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091726513.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://lib.baomitu.com/butterfly-extsrc/1.1.3/sharejs/dist/css/share.min.css" media="print" onload='this.media="all"'><script src="https://lib.baomitu.com/butterfly-extsrc/1.1.3/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/92310ed8.html" title="微信小程序渐进式骨架屏的写法"><img class="cover" src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091725162.png" onerror='onerror=null,src="/img/404.png"' alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">微信小程序渐进式骨架屏的写法</div></div></a></div><div class="next-post pull-right"><a href="/36e87c18.html" title="React17+React Hook+TS4 最佳实践仿 Jira 企业级项目笔记"><img class="cover" src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091759286.png" onerror='onerror=null,src="/img/404.png"' alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">React17+React Hook+TS4 最佳实践仿 Jira 企业级项目笔记</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/64b8ea48.html" title="win11安装系统提示virtualBox不兼容需要卸载virtual的解决办法,但是卸载列表找不到virtual的解决办法"><img class="cover" src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202406121031290.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-07-22</div><div class="title">win11安装系统提示virtualBox不兼容需要卸载virtual的解决办法,但是卸载列表找不到virtual的解决办法</div></div></a></div><div><a href="/cc4cf5d9.html" title="右键新建txt,新建文本文件不见了,通过添加注册表就可以解决,找来找去办法解决不了的终极办法"><img class="cover" src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202406121034608.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-07-22</div><div class="title">右键新建txt,新建文本文件不见了,通过添加注册表就可以解决,找来找去办法解决不了的终极办法</div></div></a></div><div><a href="/d236288b.html" title="使用优启通(EasyU)重装系统教程(详细)"><img class="cover" src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/20220323210821.png" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-03-23</div><div class="title">使用优启通(EasyU)重装系统教程(详细)</div></div></a></div></div></div><hr class="custom-hr"><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="artalk-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://oss.dreamlove.top/i/2024/02/02/nw24wu.png" onerror='this.onerror=null,this.src="/img/404.png"' alt="avatar"></div><div class="author-info__name">梦洁</div><div class="author-info__description">小小的字,有大大的梦想~分享我的前端学习过程,经历,错误,和一些其他折腾过程</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">176</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">101</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">73</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/superBiuBiuMan"><i class="fab fa-github"></i><span>关注下我(* ̄▽ ̄*)</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="mailto:[email protected]" target="_blank" title="Email"><i class="fas fa-envelope" style="color:#4a7dbe"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">不断更新中,有问题请留言回复(会通过邮箱提醒~)</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E8%A8%80"><span class="toc-number">1.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85nginx-%E5%A6%82%E6%9E%9C%E9%9C%80%E8%A6%81NginxWebUI-%E5%B0%B1%E4%B8%8D%E8%BF%99%E6%A0%B7%E5%AD%90%E5%AE%89%E8%A3%85"><span class="toc-number">2.</span> <span class="toc-text">安装nginx(如果需要NginxWebUI,就不这样子安装)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85Nginx-Proxy-Manager"><span class="toc-number">3.</span> <span class="toc-text">安装Nginx Proxy Manager</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85docker%E5%92%8Cdocker-compose"><span class="toc-number">4.</span> <span class="toc-text">安装docker和docker-compose</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85docker"><span class="toc-number">4.1.</span> <span class="toc-text">安装docker</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85docker-compose"><span class="toc-number">4.2.</span> <span class="toc-text">安装docker-compose</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85NginxWebUI-Nginx%E5%8F%AF%E8%A7%86%E5%8C%96%E5%B7%A5%E5%85%B7"><span class="toc-number">5.</span> <span class="toc-text">安装NginxWebUI(Nginx可视化工具)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85nodejs-%E4%BD%BF%E7%94%A8NVM%E7%AE%A1%E7%90%86"><span class="toc-number">6.</span> <span class="toc-text">安装nodejs(使用NVM管理)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E8%87%AA%E5%B7%B1%E5%B8%B8%E7%94%A8docker"><span class="toc-number">7.</span> <span class="toc-text">安装自己常用docker</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AD%A6%E4%B9%A0%E5%BC%BA%E5%9B%BD"><span class="toc-number">7.1.</span> <span class="toc-text">学习强国</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%8B%89%E5%8F%96%E9%95%9C%E5%83%8F-%E4%B9%9F%E5%8F%AF%E4%BB%A5%E7%9B%B4%E6%8E%A5%E5%8E%BB%E9%83%A8%E7%BD%B2"><span class="toc-number">7.1.1.</span> <span class="toc-text">拉取镜像(也可以直接去部署)</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2023%E5%B9%B43%E6%9C%8826%E6%97%A514-33-45-%E6%9B%B4%E6%8D%A2%E6%96%B0%E6%96%B9%E6%B3%95"><span class="toc-number">7.1.2.</span> <span class="toc-text">2023年3月26日14.33.45 更换新方法</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2023%E5%B9%B43%E6%9C%8824%E6%97%A514-32-45%E4%B8%8B%E9%9D%A2%E8%BF%99%E7%A7%8D%E5%A4%B1%E6%95%88%E4%BA%86"><span class="toc-number">7.1.3.</span> <span class="toc-text">2023年3月24日14.32.45下面这种失效了</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%83%A8%E7%BD%B2"><span class="toc-number">7.1.4.</span> <span class="toc-text">部署</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%8C%E6%88%90%E5%92%8C%E5%85%B6%E4%BB%96%E9%85%8D%E7%BD%AE"><span class="toc-number">7.1.5.</span> <span class="toc-text">完成和其他配置</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E9%9D%92%E9%BE%99-docker-compose%E6%96%B9%E5%BC%8F"><span class="toc-number">7.2.</span> <span class="toc-text">安装青龙(docker-compose方式)</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E5%A5%BD%E5%90%8E%E5%AE%89%E8%A3%85%E4%B8%8B%E4%BE%9D%E8%B5%96-%E6%87%82%E5%BE%97%E9%83%BD%E6%87%82"><span class="toc-number">7.2.1.</span> <span class="toc-text">安装好后安装下依赖(懂得都懂)</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85qbittorrent"><span class="toc-number">7.3.</span> <span class="toc-text">安装qbittorrent</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85aria2-pro"><span class="toc-number">7.4.</span> <span class="toc-text">安装aria2-pro</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85alist"><span class="toc-number">7.5.</span> <span class="toc-text">安装alist</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85subconverter"><span class="toc-number">7.6.</span> <span class="toc-text">安装subconverter</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E7%9F%AD%E9%93%BE%E6%8E%A5Yourls"><span class="toc-number">7.7.</span> <span class="toc-text">安装短链接Yourls</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85shlink"><span class="toc-number">7.8.</span> <span class="toc-text">安装shlink</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85heimdall"><span class="toc-number">7.9.</span> <span class="toc-text">安装heimdall</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85nastool"><span class="toc-number">7.10.</span> <span class="toc-text">安装nastool</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85vertex"><span class="toc-number">7.11.</span> <span class="toc-text">安装vertex</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85screen"><span class="toc-number">8.</span> <span class="toc-text">安装screen</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85"><span class="toc-number">8.1.</span> <span class="toc-text">安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8"><span class="toc-number">8.2.</span> <span class="toc-text">使用</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85cloudreve"><span class="toc-number">9.</span> <span class="toc-text">安装cloudreve</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85Kavita"><span class="toc-number">10.</span> <span class="toc-text">安装Kavita</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85-Web-File-Browser"><span class="toc-number">11.</span> <span class="toc-text">安装 Web File Browser</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8root%E7%94%A8%E6%88%B7%E5%9C%A8AWS"><span class="toc-number">12.</span> <span class="toc-text">使用root用户在AWS</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%80%E9%94%AE%E8%AE%BE%E7%BD%AE%E8%99%9A%E6%8B%9F%E5%86%85%E5%AD%98"><span class="toc-number">13.</span> <span class="toc-text">一键设置虚拟内存</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%9F%AD%E9%93%BE%E6%8E%A5%E7%9A%84%E4%B8%80%E4%B8%AA%E4%BB%8B%E7%BB%8D%E5%8D%9A%E5%AE%A2"><span class="toc-number">14.</span> <span class="toc-text">短链接的一个介绍博客</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%B5%8B%E8%AF%95"><span class="toc-number">15.</span> <span class="toc-text">服务器测试</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%8F%82%E8%80%83%E6%96%87%E7%AB%A0"><span class="toc-number">16.</span> <span class="toc-text">参考文章</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%8F%E7%9F%A5%E8%AF%86%E7%82%B9"><span class="toc-number">17.</span> <span class="toc-text">小知识点</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/b491ce61.html" title="穿越火线怀旧服预约网页vue3版本"><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202501131843929.png" onerror='this.onerror=null,this.src="/img/404.png"' alt="穿越火线怀旧服预约网页vue3版本"></a><div class="content"><a class="title" href="/b491ce61.html" title="穿越火线怀旧服预约网页vue3版本">穿越火线怀旧服预约网页vue3版本</a><time datetime="2025-01-13T18:26:12.000Z" title="发表于 2025-01-13 18:26:12">2025-01-13</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/65bb05da.html" title="Scrapy2.12版本拦截自带日志记录转由loguru记录并可以按照错误登记归类整理"><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202501131841250.png" onerror='this.onerror=null,this.src="/img/404.png"' alt="Scrapy2.12版本拦截自带日志记录转由loguru记录并可以按照错误登记归类整理"></a><div class="content"><a class="title" href="/65bb05da.html" title="Scrapy2.12版本拦截自带日志记录转由loguru记录并可以按照错误登记归类整理">Scrapy2.12版本拦截自带日志记录转由loguru记录并可以按照错误登记归类整理</a><time datetime="2025-01-10T11:20:55.000Z" title="发表于 2025-01-10 11:20:55">2025-01-10</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/45b08e30.html" title="一个代理注册平台住宅代理IP-纯净IP注册,对于一些需要高质量IP验证的很有效"><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202501131843524.png" onerror='this.onerror=null,this.src="/img/404.png"' alt="一个代理注册平台住宅代理IP-纯净IP注册,对于一些需要高质量IP验证的很有效"></a><div class="content"><a class="title" href="/45b08e30.html" title="一个代理注册平台住宅代理IP-纯净IP注册,对于一些需要高质量IP验证的很有效">一个代理注册平台住宅代理IP-纯净IP注册,对于一些需要高质量IP验证的很有效</a><time datetime="2025-01-08T18:35:15.000Z" title="发表于 2025-01-08 18:35:15">2025-01-08</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/cc169943.html" title="知音漫客,漫画派对,神漫,等听说很多漫画杂志停刊了,吓得我赶快保存"><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202501131840676.png" onerror='this.onerror=null,this.src="/img/404.png"' alt="知音漫客,漫画派对,神漫,等听说很多漫画杂志停刊了,吓得我赶快保存"></a><div class="content"><a class="title" href="/cc169943.html" title="知音漫客,漫画派对,神漫,等听说很多漫画杂志停刊了,吓得我赶快保存">知音漫客,漫画派对,神漫,等听说很多漫画杂志停刊了,吓得我赶快保存</a><time datetime="2024-11-22T14:25:42.000Z" title="发表于 2024-11-22 14:25:42">2024-11-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/8d23aa26.html" title="scrapy的xpath在控制台可以匹配,但是到了代码无法匹配(无法匹配tbody标签)"><img src="https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202501131841250.png" onerror='this.onerror=null,this.src="/img/404.png"' alt="scrapy的xpath在控制台可以匹配,但是到了代码无法匹配(无法匹配tbody标签)"></a><div class="content"><a class="title" href="/8d23aa26.html" title="scrapy的xpath在控制台可以匹配,但是到了代码无法匹配(无法匹配tbody标签)">scrapy的xpath在控制台可以匹配,但是到了代码无法匹配(无法匹配tbody标签)</a><time datetime="2024-10-23T14:27:53.000Z" title="发表于 2024-10-23 14:27:53">2024-10-23</time></div></div></div></div></div></div></main><footer id="footer" style="background-image:url(https://dreamos.oss-cn-beijing.aliyuncs.com/gitblog/202304091726513.png)"><div id="footer-wrap"><div class="copyright">©2021 - 2025 By 梦洁</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js?v=4.13.0"></script><script src="/js/main.js?v=4.13.0"></script><script src="https://lib.baomitu.com/fancyapps-ui/5.0.33/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"><script>(()=>{let t=null;const e=()=>{if(t=Artalk.init(Object.assign({el:"#artalk-wrap",server:"https://artalk.dreamlove.top",site:"梦洁小站",pageKey:location.pathname,darkMode:"dark"===document.documentElement.getAttribute("data-theme")},null)),"null"===GLOBAL_CONFIG.lightbox)return;t.on("list-loaded",()=>{t.ctx.get("list").getCommentNodes().forEach(t=>{const e=t.getRender().$content;btf.loadLightbox(e.querySelectorAll("img:not([atk-emoticon])"))})});btf.addGlobalFn("pjax",()=>{t.destroy()},"destroyArtalk")},a=async()=>{"object"==typeof Artalk||(await getCSS("https://lib.baomitu.com/artalk/2.8.2/Artalk.min.css"),await getScript("https://lib.baomitu.com/artalk/2.8.2/Artalk.min.js")),e()};btf.addGlobalFn("themeChange",e=>{const a=document.getElementById("artalk-wrap");if(!a||!a.children.length)return;const l="dark"===e;t.setDarkMode(l)},"artalk"),a()})()</script></div><script id="canvas_nest" defer color="0,0,255" opacity="0.7" zindex="-1" count="99" mobile="false" src="https://lib.baomitu.com/butterfly-extsrc/1.1.3/canvas-nest.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="algolia-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="search-wrap"><div id="algolia-search-input"></div><hr><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-info"><div class="algolia-stats"></div><div class="algolia-poweredBy"></div></div></div></div></div><div id="search-mask"></div><script src="https://lib.baomitu.com/algoliasearch/4.22.1/algoliasearch-lite.umd.min.js"></script><script src="https://lib.baomitu.com/instantsearch.js/4.65.0/instantsearch.production.min.js"></script><script src="/js/search/algolia.js?v=4.13.0"></script></div></div></body></html>