UBUNTU安装sqlserver
时间: 2023-08-21 10:08:26 浏览: 107
要在Ubuntu上安装SQL Server,需要满足一些条件。首先,您的Ubuntu系统需要具有至少2GB的可用内存,并且需要能够连接到互联网,因为我们将使用在线安装方法。接下来,您需要按照以下步骤进行操作:
1. 更新您的系统:使用以下命令更新软件包列表和升级已安装的软件包:
sudo apt update && sudo apt upgrade
2. 添加Microsoft SQL Server Ubuntu存储库的注册:根据您的Ubuntu版本,运行相应的命令:
对于Ubuntu 18.04:
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/18.04/mssql-server-2019.list)"
3. 安装SQL Server软件包:运行以下命令以安装SQL Server:
sudo apt-get update
sudo apt-get install -y mssql-server
4. 安装过程完成后,运行mssql-conf setup命令来进行一些初始设置,包括设置SA密码和选择版本:
sudo /opt/mssql/bin/mssql-conf setup
请注意,SQL Server有三个免费许可版本可供使用:Evaluation、Developer和Express版。您可以按照上面的步骤进行安装和设置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Ubuntu 20.04安装SQL Server](https://blog.csdn.net/weixin_37813152/article/details/129219678)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Ubuntu安装SqlServer](https://blog.csdn.net/weixin_45200739/article/details/124695059)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文