Centos7.7安装SQL Server 2019Centos7.7安装SQL Server 2019
安装SQL Server2019
下载文章上面提供的SQL Server2019,上传到服务器并安装
[root@localhost ~]# rpm -ivh mssql-server-15.0.4003.23-3.x86_64.rpmPreparing... ################################# [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 setupusermod: no changesChoose 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 athttps://go.microsoft.com/fwlink/?LinkId=2109348&clcid=0x409Use of PAID editions of this software requires separate licensing through aMicrosoft Volume Licensing program.By choosing a PAID edition, you are verifying that you have the appropriatenumber 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=0x409The privacy statement can be viewed at:https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409Do 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.