<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>LibraryStudio -- 谢涛的技术笔记</title>
    <link>https://librarystudio.cn/</link>
    <description>Recent content on LibraryStudio -- 谢涛的技术笔记</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Mon, 21 Sep 2026 23:09:30 +0800</lastBuildDate>
    <atom:link href="https://librarystudio.cn/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>关于本站</title>
      <link>https://librarystudio.cn/about/</link>
      <pubDate>Mon, 21 Sep 2026 23:09:30 +0800</pubDate>
      <guid>https://librarystudio.cn/about/</guid>
      <description>关于 LibraryStudio 网站和作者的介绍</description>
      <content:encoded><![CDATA[<h1 id="关于本站">关于本站</h1>
<p>这是我的个人笔记站点，使用 Hugo + PaperMod 搭建。</p>
<h2 id="建站技术">建站技术</h2>
<ul>
<li>静态站点生成：Hugo</li>
<li>主题：PaperMod</li>
<li>服务器：阿里云ECS + Nginx + Let&rsquo;s Encrypt SSL</li>
</ul>
<h2 id="我是谁">我是谁</h2>
<p>我是一个热爱技术分享的程序员。专注于 Windows 和 Linux 跨平台开发。</p>
<p><a href="/">回到首页</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>如何在 Linux 下安装 MS SQL Server</title>
      <link>https://librarystudio.cn/posts/first-post/</link>
      <pubDate>Mon, 21 Sep 2026 19:16:49 +0800</pubDate>
      <guid>https://librarystudio.cn/posts/first-post/</guid>
      <description>&lt;p&gt;本文参考了 &lt;a href=&#34;https://learn.microsoft.com/zh-cn/sql/linux/install-upgrade/quickstart-install-ubuntu&#34;&gt;https://learn.microsoft.com/zh-cn/sql/linux/install-upgrade/quickstart-install-ubuntu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;适用于：SQL Server 2025 （17.x） CU 1 及更高版本。&lt;/p&gt;
&lt;p&gt;步骤:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;下载公钥，将其从 ASCII 转换为 GPG 格式，并将其写入所需位置：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;手动下载并注册 SQL Server Ubuntu 存储库：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;curl -fsSL https://packages.microsoft.com/config/ubuntu/24.04/mssql-server-2025.list | sudo tee /etc/apt/sources.list.d/mssql-server-2025.list
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;安装 SQL Server：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt-get update
sudo apt-get install -y mssql-server
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;包安装完成后，运行 mssql-conf setup，按照提示设置 sa 密码并选择版本。 以下 SQL Server 版本获自由许可：评估版、开发人员版和 Express 版。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo /opt/mssql/bin/mssql-conf setup
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;一开始会显示出版本列表：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Choose an edition of SQL Server:
  1) Evaluation (free, no production use rights, 180-day limit)
  2) Enterprise Developer (free, no production use rights)
  3) Standard Developer (free, no production use rights)
  4) Express (free)
  5) Standard (PAID)
  6) Enterprise (PAID) - CPU core utilization restricted to 20 physical/40 hyperthreaded
  7) Enterprise Core (PAID) - CPU core utilization up to Operating System Maximum
  8) I bought a license through a retail sales channel and have a product key to enter.
  9) Standard (Billed through Azure) - Use pay-as-you-go billing through Azure.
  10) Enterprise Core (Billed through Azure) - Use pay-as-you-go billing through Azure.

Details about editions can be found at
https://go.microsoft.com/fwlink/?LinkId=2109348

Use of PAID editions of this software requires separate licensing through a
Microsoft Volume Licensing program.
By choosing a PAID edition, you are verifying that you have the appropriate
number of licenses in place to install and run this software.
By choosing an edition billed Pay-As-You-Go through Azure, you are verifying
that the server and SQL Server will be connected to Azure by installing the
management agent and Azure extension for SQL Server.

Enter your edition(1-10):
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;一般我们开发选 3 即可。&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>本文参考了 <a href="https://learn.microsoft.com/zh-cn/sql/linux/install-upgrade/quickstart-install-ubuntu">https://learn.microsoft.com/zh-cn/sql/linux/install-upgrade/quickstart-install-ubuntu</a></p>
<p>适用于：SQL Server 2025 （17.x） CU 1 及更高版本。</p>
<p>步骤:</p>
<ol>
<li></li>
</ol>
<p>下载公钥，将其从 ASCII 转换为 GPG 格式，并将其写入所需位置：</p>
<pre tabindex="0"><code>curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
</code></pre><ol start="2">
<li></li>
</ol>
<p>手动下载并注册 SQL Server Ubuntu 存储库：</p>
<pre tabindex="0"><code>curl -fsSL https://packages.microsoft.com/config/ubuntu/24.04/mssql-server-2025.list | sudo tee /etc/apt/sources.list.d/mssql-server-2025.list
</code></pre><ol start="3">
<li></li>
</ol>
<p>安装 SQL Server：</p>
<pre tabindex="0"><code>sudo apt-get update
sudo apt-get install -y mssql-server
</code></pre><ol start="4">
<li></li>
</ol>
<p>包安装完成后，运行 mssql-conf setup，按照提示设置 sa 密码并选择版本。 以下 SQL Server 版本获自由许可：评估版、开发人员版和 Express 版。</p>
<pre tabindex="0"><code>sudo /opt/mssql/bin/mssql-conf setup
</code></pre><p>一开始会显示出版本列表：</p>
<pre tabindex="0"><code>Choose an edition of SQL Server:
  1) Evaluation (free, no production use rights, 180-day limit)
  2) Enterprise Developer (free, no production use rights)
  3) Standard Developer (free, no production use rights)
  4) Express (free)
  5) Standard (PAID)
  6) Enterprise (PAID) - CPU core utilization restricted to 20 physical/40 hyperthreaded
  7) Enterprise Core (PAID) - CPU core utilization up to Operating System Maximum
  8) I bought a license through a retail sales channel and have a product key to enter.
  9) Standard (Billed through Azure) - Use pay-as-you-go billing through Azure.
  10) Enterprise Core (Billed through Azure) - Use pay-as-you-go billing through Azure.

Details about editions can be found at
https://go.microsoft.com/fwlink/?LinkId=2109348

Use of PAID editions of this software requires separate licensing through a
Microsoft Volume Licensing program.
By choosing a PAID edition, you are verifying that you have the appropriate
number of licenses in place to install and run this software.
By choosing an edition billed Pay-As-You-Go through Azure, you are verifying
that the server and SQL Server will be connected to Azure by installing the
management agent and Azure extension for SQL Server.

Enter your edition(1-10):
</code></pre><p>一般我们开发选 3 即可。</p>
<p>然后会询问是否接收许可条款：</p>
<pre tabindex="0"><code>The license terms for this product can be found in
/usr/share/doc/mssql-server or downloaded from: https://aka.ms/useterms

The privacy statement can be viewed at:
https://go.microsoft.com/fwlink/?LinkId=853010

Do you accept the license terms? [Yes/No]:
</code></pre><p>回答 y 即可。</p>
<p>然后会要求输入管理员密码：</p>
<pre tabindex="0"><code>Enter the SQL Server system administrator password:
Confirm the SQL Server system administrator password:
</code></pre><p>密码要求混合多种字符，不允许简单密码。</p>
<ol start="5">
<li></li>
</ol>
<p>配置完成后，验证服务是否正在运行：</p>
<pre tabindex="0"><code>systemctl status mssql-server --no-pager
</code></pre><p>如果计划远程连接，可能还需要在防火墙上打开 SQL Server TCP 端口（默认值为 1433）。</p>
<p>此时，SQL Server 已在 Ubuntu 计算机上运行，随时可以使用。</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
