Centos7.7系統下安裝SQL Server 2019

2021-02-13 Linux就該這麼學

SQL Server 2019 為所有數據工作負載帶來了創新的安全性和合規性功能、業界領先的性能、任務關鍵型可用性和高級分析,現在還支持內置的大數據。

系統版本:Centos7.7 ,內存4G(SQL Server內存要求至少2G),硬碟40G,1核CPUSQL Server版本:SQL Server 2019,下載地址SQL Server Management Studio 版本:V18.4,安裝在windows客戶端下載地址,Windows 2008R2(64位)或Windows8.1(64位)以上

[root@localhost ~]# sed -i '/^SELINUX/s/enforcing/disabled/g' /etc/selinux/config && setenforce 0

[root@localhost ~]# curl https://packages.microsoft.com/config/rhel/7/prod.repo -o /etc/yum.repos.d/msprod.repo
[root@localhost ~]# yum -y install mssql-tools unixODBC-devel bzip2 gdb libsss_nss_idmap cyrus-sasl cyrus-sasl-gssapi

下載文章上面提供的SQL Server2019,上傳到伺服器並安裝

[root@localhost ~]# rpm -ivh mssql-server-15.0.4003.23-3.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:mssql-server-15.0.4003.23-3 ################################# [100%]

+--+
Please run 'sudo /opt/mssql/bin/mssql-conf setup'
to complete the setup of Microsoft SQL Server
+--+

[root@localhost ~]# /opt/mssql/bin/mssql-conf setup
usermod: no changes
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) - 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.

Details about editions can be found at
https://go.microsoft.com/fwlink/?LinkId=2109348&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): 3 #這裡選擇了Express版本
The license terms for this product can be found in
/usr/share/doc/mssql-server or downloaded from:
https://go.microsoft.com/fwlink/?LinkId=2104294&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 #輸入Yes接受許可條目

Enter the SQL Server system administrator password: #設置SA管理員密碼
Confirm the SQL Server system administrator password:
Configuring SQL Server...

The licensing PID was successfully processed. The new edition is [Express Edition].
ForceFlush is enabled for this instance.
ForceFlush feature is enabled for log durability.
Created symlink from /etc/systemd/system/multi-user.target.wants/mssql-server.service to /usr/lib/systemd/system/mssql-server.service.
Setup has completed successfully. SQL Server is now starting.

[root@localhost ~]# echo 'export PATH=$PATH:/opt/mssql-tools/bin' > /etc/profile.d/mssql.sh
[root@localhost ~]# source !$
source /etc/profile.d/mssql.sh

[root@localhost ~]# firewall-cmd --permanent --add-service=mssql
success
[root@localhost ~]# firewall-cmd --reload
success

[root@localhost ~]# sqlcmd -S localhost -U sa
Password:
# 顯示系統資料庫
1> select name,database_id from sys.databases;
# 執行
2> go
name database_id
--- -
master 1
tempdb 2
model 3
msdb 4

(4 rows affected)
# 查看軟體版本
1> SELECT @@VERSION
2> go


Microsoft SQL Server 2019 (RTM-CU1) (KB4527376) - 15.0.4003.23 (X64)
Dec 6 2019 14:53:33
Copyright (C) 2019 Microsoft Corporation
Express Edition (64-bit) on Linux (CentOS Linux 7 (Core))

(1 rows affected)
1>

安裝上面提供的SSMS管理軟體,安裝完成之後搜索」ssms」,打開該管理軟體
輸入伺服器地址,身份驗證選擇「SQL Server身份驗證」,輸入用戶名密碼,然後連接。
查看一下SQL Server版本

內存設置為2G的時候,安裝SQL Server2019會出現安裝失敗,提示內存最少為2000M,所以設置不要低於2G內存,安裝還是很簡單的。

本文原創地址:https://www.linuxprobe.com/centos7-instal-mssql-2019.html編輯:逄增寶,審核員:逄增寶

如果喜歡這位作者的文章,點點在看支持一下~


官方站點:www.linuxprobe.com

 Linux命令大全:www.linuxcool.com

Linux系統下載站:www.linuxdown.com

劉遄老師QQ:5604922

Linux技術交流群:193666693

新群,火熱加群中……

書籍在線學習(電腦閱讀效果佳

http://www.linuxprobe.com/chapter-00.html

    想要學習Linux系統的讀者可以點擊"閱讀原文"按鈕來了解書籍《Linux就該這麼學》,同時也非常適合專業的運維人員閱讀,成為輔助您工作的高價值工具書!

相關焦點

  • CentOS7 64位安裝Mysql教程
    這裡依舊以mysql為例進行展示1、先檢查系統是否裝有mysql這裡返回空值,說明沒有安裝這裡執行安裝命令是無效的,因為centos-7默認是Mariadb,所以執行以下命令只是更新Mariadb資料庫刪除可用2、下載mysql的repo源安裝mysql-community-release-el7
  • SQL Server 2019下載安裝教程!
    [名稱]:SQL Server 2019[大小]:1.86 GB    [語言]:簡體中文 [安裝環境]:Win7/Win8/Win10[64位下載連結]:https://pan.baidu.com/s/1tkR_7Jl4vUUrj7k6C2uJYA[提取碼]: mubp安裝中有問題請諮詢微信:xiaoxiaojie5668
  • SQL Server 2019軟體安裝教程
    1.首先右擊【sql_server_2019】壓縮包,之後選擇【解壓到sql_server_2019】文件夾。2.右擊打開解壓後的【sql_server_2019】文件夾。3.首先右擊【sql_server_2019.iso】,之後選擇【打開方式】-【Windows資源管理器】。
  • SQL Server 2019 安裝教程
    PS:官方下載連結 https://www.microsoft.com/zh-cn/sql-server/sql-server-20191、下載文件        下載好sql2019 iso文件和SSMS文件2、直接雙擊打開 【***.iso】文件,win10會自動加載到虛擬光碟機。
  • SQL Server 2019安裝教程
    [名稱]:SQL Server 2019[大小]:1.93GB[語言]:簡體中文[適用系統]:win7,win8
  • 【資料庫】SQL Server 2019 自定義安裝
    年11月7日在Microsoft Ignite 2019 大會上,微軟正式發布了新一代資料庫產品SQL Server 2019。詳細安裝步驟:1、進入下載頁面 https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads官網提供180 天的 Windows SQL Server 2019 免費試用。
  • Linux下備份SQL Server的Shell腳本
    公司有一臺linux伺服器是專門用於備份的伺服器,因為sql server出了linux版(主要是出了linux版的sqlcmd工具),使我Windows
  • CentOS 7安裝Splunk
    沒有官方的安裝必須條件,但為伺服器安裝防火牆和網絡配置之前,我推薦一個合適的域名。該軟體只支持64位伺服器架構,在這篇文章中,我指導你如何在CentOS 7伺服器安裝Splunk的企業版。讓我們用一個一個步驟的安裝。Splunk總是建議使用專用用戶為此應用程式運行,而不是根用戶。我創建了一個用戶運行該應用程式,並創建了一個文件夾安裝應用程式。
  • SQL Server 2019軟體安裝包及安裝教程
    3、滑鼠右擊 sql_server4、解壓得到sql_server_2019文件夾,打開它7、安裝目錄,這裡不建議去新建文件夾,我們只需更改默認位置的安裝盤,後面的路徑不變。
  • CentOS 7系統如何安裝Rstudio-server
    由於RHEL 7系統中,採用firewalld防火牆去掉了傳統的iptables防火牆,因此對於安裝Rstudio-server會與RHEL 6
  • Linux(CentOS)安裝MySQL5.7
    官網下載MySQL官網:https://dev.mysql.com/downloads/repo/yum/下載自己需要的版本後,如下[root@VM-0-8-centos software]# lsmysql80-community-release-el7-3.noarch.rpm[root@VM-0-8-centos software
  • SQL Server 2019下載安裝教程
    SQL Server 2019下載安裝教程一.下載SQL Server 2019
  • CentOS6/RHEL6系統安裝Zabbix3.0指南
    ※ 對於Zabbix3.0在CentOS7/RHEL7系統中的安裝包部署步驟與6版本基本相同,唯獨不同的是創建資料庫目錄結構的SQL腳本合併為一個create.sql.gz包,將以前導入資料庫的命令替換成zcat create.sql.gz | mysql -uroot zabbix即可, 6版本安裝教程請參見<<Zabbix安裝部署教程>>。
  • SQL Server 2019 軟體安裝教程
    3.安裝路逕自己定義,然後點擊安裝7.安裝2.下載安裝SQL Server Management Studio(SSMS)2.1 進入官網或者小白提供的百度網盤下載安裝包https://docs.microsoft.com/zh-cn/sql/ssms
  • SQL Server 2019詳細安裝教程及SSMS連接
    如今的SQL Server 2019比以前版本功能更強,更簡單易用。與之前版本相比,新版本的SQL Server 2019 具備以下重要功能:在Linux和容器中運行的能力,連接大數據存儲系統的PolyBase技術。下面小編就整理新版SQL Server 2019的安裝使用教程,步驟如下,比較多,簡化了一些,小編這裡以標準版為例,希望對大家有幫助!
  • CentOS7 上安裝SQL Server vNext CTP1
    只有RAM 超過128GB或者超過24核心或者超過4路的環境才必須要安裝企業版。還有一個重要的發布:SQL Server vNext on Linux。也是本文介紹安裝的版本。長話短說,開始安裝。這個版本的SQL Server,官方支持的平臺是Red Hat Enterpise 7.2 或者Ubuntu 16.04。
  • CentOS 7.3 系統安裝
    一、系統安裝CentOS 7.x系列只有64位系統,沒有32位,成功引導系統後,會出現下面的界面界面說明:
  • 如何在 CentOS 7 / RHEL 7 終端伺服器上安裝 KVM | Linux 中國
    如何在 CnetOS 7 或 RHEL 7(Red Hat 企業版 Linux)伺服器上安裝和配置 KVM(基於內核的虛擬機)?如何在 CentOS 7 上設置 KVM 並使用雲鏡像 / cloud-init 來安裝客戶虛擬機?基於內核的虛擬機(KVM)是 CentOS 或 RHEL 7 的虛擬化軟體。KVM 可以將你的伺服器變成虛擬機管理器。
  • 在 CentOS 7 CPanel 伺服器上安裝 MariaDB 10
    Jan 31 10:00:02 server1.centos7-test.com systemd[1]: Starting MySQL Server...Jan 31 10:00:02 server1.centos7-test.com systemd[1]: mysql.service: main process exited, code=exited, status=203/EXECJan 31 10:00:02 server1.centos7-test.com systemd[1]: Unit mysql.service
  • Microsoft SQL Server 下載
    ed2k://|file|zh-hans_sql_server_2008_developer_x86_x64_ia64_dvd_x14-88831.iso|3517124608|56E3432E4D37FC6F13F2503DA7007CFC|/SQL Server 2008 R2ed2k://|file|cn_sql_server_2008_r2_developer_x86