本文基于微软官方文档建立,原文地址:
https://docs.microsoft.com/zh-cn/sql/linux/sql-server-linux-setup-red-hat
本文提供了在Red Hat Enterprise Linux (RHEL)系统中安装SQL Server vNext CTP 1.3的完整攻略。
注意
你需要至少3.25GB的内存来运行SQL Server的Linux版。 SQL Server引擎此次测试了最高1 TB内存。
To install the mssql-server package on RHEL, follow these steps:
sudo su
curl https://packages.microsoft.com/config/rhel/7/mssql-server.repo > /etc/yum.repos.d/mssql-server.repo
exit
sudo yum install -y mssql-server
sudo /opt/mssql/bin/mssql-conf setup
systemctl status mssql-server
sudo firewall-cmd --zone=public --add-port=1433/tcp --permanentsudo firewall-cmd --reload
To upgrade the mssql-server package on RHEL, execute the following command:
sudo yum update mssql-server
These commands will download the newest package and replace the binaries located under /opt/mssql/. The user generated databases and system databases will not be affected by this operation.
To remove the mssql-server package on RHEL, follow these steps:
sudo yum remove mssql-server
sudo rm -rf /var/opt/mssql/