linux加微软的数据库,在Linux上使用Microsoft SQL – 安装SQL
Microsoft 分享一下如何在Linux上使用Microsoft SQL 2017。
SQL Server 2017旨在處理開源數據和應用程序的異構環境。在本技術白皮書中,您將獲得業界領先的關系數據庫引擎的操作視圖,重點是利用SQL Server功能以開源開發人員和IT專家需要和期望的方式提供強大的洞察力。除了現在的標準功能,如高級分析和機器智能,SQL Server 2017還提供業界領先的安全性以及與開源應用程序和工具的互操作性。SQL Server 2017
1、微軟官方文檔描述的Linux平臺為:Redhat、Ubuntu、SUSE、Docker。今天我們來分享一下如何在Centos7中安裝SQL2017。由于
測試環境使用root執行,但如果你是生產環境建議還是創建低權限賬號使用。
2、Linux系統更新
yum update -y
3、下載Microsoft SQL Server 2017 or 2019 存儲庫配置文件
//SQL Server 2017 存儲庫配置文件
curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo
//SQL Server 2019 存儲庫配置文件
curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-preview.repo
4、安裝SQL Server
yum install -y mssql-server
5、運行mssql-conf setup,此處需要注意提示,選擇版本信息及設置SA密碼,由于我們是測試,所以可以選擇1、2、3。我們在Enter your edition(1-8): 輸入1后回車。隱私&許可,輸入YES。然后輸入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: 此處輸入SA密碼,建議不要使用弱密碼
6、輸入密碼后,Linux for SQL Server 2017就已經完成了安裝,我們可以檢查一下服務狀態是否正常。我們看到服務狀態正??梢哉J褂昧?。
systemctl status mssql-server.service
此文章為原創文章,作者:胖哥叨逼叨,如若轉載,請與我聯系并注明出處:https://www.pangshare.com/1681.htm
總結
以上是生活随笔為你收集整理的linux加微软的数据库,在Linux上使用Microsoft SQL – 安装SQL的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如意金箍棒
- 下一篇: Linux io模型及函数调用,Linu