这篇文章将为大家详细讲解有关Ubuntu下如何部署SQL Server 2017,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
SQL Server 2017 最近已正式发布。这是 SQL Server 历史上***同时发布 Windows 和 Linux 版。此外,微软还发布了能使用 Docker 部署的容器版本。对 SQL Server 而言,这是其历史上具有里程碑意义的一步,因为这是跨出 Windows 的***个版本,标志着 SQL Server 在 Linux 平台上***可用。
SQL Server 2017 新版本成为***个云端、跨不同操作系统的版本,包括 Linux、Docker。SQL Server 2017 目前支持的 Linux 发行版包括:Red Hat Enterprise Linux(RHEL), SUSE Linux Enterprise Server 和 Ubuntu。SQL Server 2017 支持 Docker 企业版,Kubernetes 和 OpenShift 这三大容器平台。
SQL Server 2017 新特性
SQL Server 2017 支持使用 R 和 Python 的分析方法,来做资料库内的机器学习,意味着不必迁移资料,省下不少时间。
图数据分析功能将使客户能够使用图形数据存储和查询语言扩展来使用原生的图形查询语法,以便在高度互连的数据中发现新的关系。
自适应查询处理可为数据库带来更智能的体验。例如,SQL Server 中的 Adaptive Memory Grants 跟踪并了解对给定的查询使用了多少内存,以调整内存的使用。
Automatic Plan Correction 通过查找和修正性能的回归来确保持续的性能。
SQL Server 2017 的核心功能在 Windows 和 Linux 上保持一致,但有少部分依赖于 Windows 功能的特性没有提供给 Linux (例如集群支持和集成 Windows 身份验证)。
本文将介绍如何在 Ubuntu 下部署 SQL Server 2017 。
安装 SQL Server 2017
在 Linux 上 安装 SQL Server 2017 的先决条件
设备类型设备要求内存3.25 GB 及以上文件系统XFS或EXT4 (其他文件系统,如BTRFS,不支持)磁盘空间6 GB处理器速度2 GHz处理器核心2 核处理器类型仅 x64 兼容安装 SQL Server 2017 服务端
导入公共存储库 GPG 密钥
$ curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
增加 Microsoft SQL Server Ubuntu 仓库
$ add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
安装 SQL Server 服务端
$ apt-get update $ apt-get install -y mssql-server
设置 SA 密码,并选择要安装的版本
$ /opt/mssql/bin/mssql-conf setup Choose an edition of SQL Server: 1) Evaluation (free, no production use rights, 180-day limit) 2) Developer (free, no production use rights) 3) Express (free) 4) Web (PAID) 5) Standard (PAID) 6) Enterprise (PAID) 7) Enterprise Core (PAID) 8) I bought a license through a retail sales channel and have a product key to enter. Details about editions can be found at https://go.microsoft.com/fwlink/?LinkId=852748&clcid=0x409 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. Enter your edition(1-8): 1 The license terms for this product can be found in /usr/share/doc/mssql-server or downloaded from: https://go.microsoft.com/fwlink/?LinkId=855864&clcid=0x409 The privacy statement can be viewed at: https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409 Do you accept the license terms? [Yes/No]:yes Enter the SQL Server system administrator password: Confirm the SQL Server system administrator password: Configuring SQL Server... The licensing PID was successfully processed. The new edition is [Enterprise Evaluation Edition]. Created symlink from /etc/systemd/system/multi-user.target.wants/mssql-server.service to /lib/systemd/system/mssql-server.service. Setup has completed successfully. SQL Server is now starting.Ubuntu下如何部署SQL Server 2017