<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bandwagon on Website of SauceWu</title><link>https://saucewu.github.io/tags/bandwagon/</link><description>Recent content in Bandwagon on Website of SauceWu</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Fri, 14 Apr 2017 18:00:00 +0000</lastBuildDate><atom:link href="https://saucewu.github.io/tags/bandwagon/index.xml" rel="self" type="application/rss+xml"/><item><title>从零建站（基于Ubuntu 16.04）</title><link>https://saucewu.github.io/posts/%E4%BB%8E%E9%9B%B6%E5%BB%BA%E7%AB%99%E5%9F%BA%E4%BA%8Eubuntu-16.04/</link><pubDate>Fri, 14 Apr 2017 18:00:00 +0000</pubDate><guid>https://saucewu.github.io/posts/%E4%BB%8E%E9%9B%B6%E5%BB%BA%E7%AB%99%E5%9F%BA%E4%BA%8Eubuntu-16.04/</guid><description>&lt;h1 id="从零建站基于-ubuntu-1604"&gt;从零建站（基于 Ubuntu 16.04）&lt;/h1&gt;
&lt;h2 id="初始化"&gt;初始化&lt;/h2&gt;
&lt;h3 id="免密登录"&gt;免密登录&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;client生成ssh公钥&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;**ssh-keygen -t rsa -C &amp;ldquo;&lt;a href="mailto:xxxxx@xxxxx.com"&gt;xxxxx@xxxxx.com&lt;/a&gt;&amp;rdquo; **
Generating public/private rsa key pair&amp;hellip;
三次回车即可生成 ssh key&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;将ssh公钥放入service ~/.ssh/authorized_keys 文件下&lt;/li&gt;
&lt;li&gt;重新登陆&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="docker"&gt;Docker&lt;/h3&gt;
&lt;h4 id="install-docker"&gt;INSTALL Docker&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;切换为Docker 官方源&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;sudo apt-get update&lt;/li&gt;
&lt;li&gt;sudo apt-get install &lt;br&gt;
apt-transport-https &lt;br&gt;
ca-certificates &lt;br&gt;
curl &lt;br&gt;
software-properties-common&lt;/li&gt;
&lt;li&gt;curl -fsSL &lt;a href="https://download.docker.com/linux/ubuntu/gpg"&gt;https://download.docker.com/linux/ubuntu/gpg&lt;/a&gt; | &lt;br&gt;
sudo apt-key add -&lt;/li&gt;
&lt;li&gt;sudo add-apt-repository &lt;br&gt;
&amp;ldquo;deb [arch=amd64] &lt;a href="https://download.docker.com/linux/ubuntu"&gt;https://download.docker.com/linux/ubuntu&lt;/a&gt; &lt;br&gt;
$(lsb_release -cs) &lt;br&gt;
stable&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Install Docker CE&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;sudo apt-get update&lt;/li&gt;
&lt;li&gt;sudo apt-get install docker-ce&lt;/li&gt;
&lt;li&gt;apt-cache madison docker-ce&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;h4 id="创建docker内部网络"&gt;创建Docker内部网络&lt;/h4&gt;
&lt;p&gt;没有远程连接mySQL和Redis的需求且link方式连接 容器维护繁琐 使用Docker 内建网络连接 节省端口资源&lt;/p&gt;</description></item></channel></rss>