Site updated: 2022-10-21 10:02:04
This commit is contained in:
57
atom.xml
57
atom.xml
@ -8,7 +8,7 @@
|
||||
<author>
|
||||
<name>Hito li</name>
|
||||
</author>
|
||||
<updated>2022-10-20T00:56:00.000Z</updated>
|
||||
<updated>2022-10-21T01:06:00.000Z</updated>
|
||||
<category term="hito" />
|
||||
<category term="無言" />
|
||||
<category term="博客" />
|
||||
@ -16,6 +16,57 @@
|
||||
<category term="笔记" />
|
||||
<category term="心得体会" />
|
||||
<category term="踩坑" />
|
||||
<entry>
|
||||
<id>https://blog.jingxiyuan.cn/2022/10/21/%E6%9E%81%E7%A9%BA%E9%97%B4Docker%E7%89%88mariadb%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/</id>
|
||||
<title>极空间Docker版mariadb安装与配置</title>
|
||||
<link rel="alternate" href="https://blog.jingxiyuan.cn/2022/10/21/%E6%9E%81%E7%A9%BA%E9%97%B4Docker%E7%89%88mariadb%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/"/>
|
||||
<content type="html"><h4 id="介绍"><a class="anchor" href="#介绍">#</a> 介绍</h4>
|
||||
<ul>
|
||||
<li>mariadb 属于 mysql 的一个分支,完全兼容 mysql,使用方式和 mysql 无区别。</li>
|
||||
</ul>
|
||||
<h4 id="安装"><a class="anchor" href="#安装">#</a> 安装</h4>
|
||||
<ul>
|
||||
<li>本文介绍安装的镜像为 linuxserver_mariadb 的 10.5.13-r0-ls45,原则上使用最新版即可</li>
|
||||
<li>配置文件映射<br />
|
||||
<img data-src="https://file.jingxiyuan.cn/images/2022/10/21/2022-10-21-09-20-56.jpg" alt="" /></li>
|
||||
<li>端口<br />
|
||||
<img data-src="https://file.jingxiyuan.cn/images/2022/10/21/2022-10-21-09-21-49.jpg" alt="" /></li>
|
||||
<li>环境(MYSQL_ROOT_PASSWORD 为数据库 root 用户密码)<br />
|
||||
<img data-src="https://file.jingxiyuan.cn/images/2022/10/21/2022-10-21-09-22-43.jpg" alt="" /></li>
|
||||
<li>到此已经可以在内网使用了,连接方法同 mysql 一致</li>
|
||||
</ul>
|
||||
<h3 id="配置"><a class="anchor" href="#配置">#</a> 配置</h3>
|
||||
<ul>
|
||||
<li>此处配置为 nginx 反向代理,配置完成后可在外网连接访问</li>
|
||||
</ul>
|
||||
<pre><code class="language-conf">stream &#123;
|
||||
|
||||
#极空间-docker-mariadb
|
||||
upstream mariadb &#123;
|
||||
hash $remote_addr consistent;
|
||||
server mariadb的ip:端口;
|
||||
&#125;
|
||||
|
||||
server &#123;
|
||||
listen 监听端口;
|
||||
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_timeout 300s;
|
||||
proxy_pass mariadb;
|
||||
&#125;
|
||||
|
||||
&#125;
|
||||
</code></pre>
|
||||
</content>
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="Docker" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/Docker/" />
|
||||
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/Docker/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/tags/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="Docker" scheme="https://blog.jingxiyuan.cn/tags/Docker/" />
|
||||
<category term="mariadb" scheme="https://blog.jingxiyuan.cn/tags/mariadb/" />
|
||||
<category term="mysql" scheme="https://blog.jingxiyuan.cn/tags/mysql/" />
|
||||
<updated>2022-10-21T01:06:00.000Z</updated>
|
||||
</entry>
|
||||
<entry>
|
||||
<id>https://blog.jingxiyuan.cn/2022/10/20/%E6%9E%81%E7%A9%BA%E9%97%B4Docker%E7%89%88Wordpress%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/</id>
|
||||
<title>极空间Docker版Wordpress安装与配置</title>
|
||||
@ -506,8 +557,8 @@ url 后缀必须用红线圈中的部分,key 在 chevereto 登陆后 api 配
|
||||
<category term="Windows" scheme="https://blog.jingxiyuan.cn/categories/Windows/" />
|
||||
<category term="工具" scheme="https://blog.jingxiyuan.cn/categories/Windows/%E5%B7%A5%E5%85%B7/" />
|
||||
<category term="经验分享" scheme="https://blog.jingxiyuan.cn/categories/Windows/%E5%B7%A5%E5%85%B7/%E7%BB%8F%E9%AA%8C%E5%88%86%E4%BA%AB/" />
|
||||
<category term="chevereto" scheme="https://blog.jingxiyuan.cn/tags/chevereto/" />
|
||||
<category term="PicGo" scheme="https://blog.jingxiyuan.cn/tags/PicGo/" />
|
||||
<category term="chevereto" scheme="https://blog.jingxiyuan.cn/tags/chevereto/" />
|
||||
<updated>2022-10-12T06:40:00.000Z</updated>
|
||||
</entry>
|
||||
<entry>
|
||||
@ -889,11 +940,11 @@ server &#123;
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="Docker" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/Docker/" />
|
||||
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/Docker/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
|
||||
<category term="chevereto" scheme="https://blog.jingxiyuan.cn/tags/chevereto/" />
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/tags/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="docker" scheme="https://blog.jingxiyuan.cn/tags/docker/" />
|
||||
<category term="图床" scheme="https://blog.jingxiyuan.cn/tags/%E5%9B%BE%E5%BA%8A/" />
|
||||
<category term="图片上传" scheme="https://blog.jingxiyuan.cn/tags/%E5%9B%BE%E7%89%87%E4%B8%8A%E4%BC%A0/" />
|
||||
<category term="chevereto" scheme="https://blog.jingxiyuan.cn/tags/chevereto/" />
|
||||
<updated>2022-09-16T00:04:00.000Z</updated>
|
||||
</entry>
|
||||
<entry>
|
||||
|
Reference in New Issue
Block a user