There the two kinds of linux installation sqlserver database approach, a first mirror mounted with yum, a second installation package using rpm
rpm installation address: https://packages.microsoft.com/rhel/7/mssql-server-2017/
Use rpm to install it possible dependency issues, not detailed installation instructions here.
Let us focus yum installed, here we installed version sqlserver2017, follow these steps:
First, the requirement
1.centos or more systems redhat7.0
2. Memory 2G above
Second, the installation step
1. Set the mirror mounting sqlserver
curl https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo > /etc/yum.repos.d/mssql-server.repo
2. Perform installation
yum install -y mssql-server
After the run is completed sudo / opt / mssql / bin / mssql-conf setup configuration to do
Input 2 using Developer (free, no production license) version
Enter yes, accept the license terms
10 input, select a language to Simplified Chinese
Set the sa account password is required 8 contain uppercase and lowercase letters and numbers, recommended setting 1234Qwer
To start after the completion of completion, the installation fails if not enough memory is re-command sudo / opt / mssql / bin / mssql-conf setup
3. Here we see the sql server version installed
rpm -qa | grep mssql
4. Check the installation path
find / -name mssql
5. Set up boot
systemctl enable mssql-server
6. Open 1433
firewall-cmd --zone=public --add-port=1433/tcp --permanent
firewall-cmd --reload
7. several commands
systemctl start mssql-server
systemctl restart mssql-server
systemctl stop mssql-server
systemctl status mssql-server
Road King of specific configuration / opt / mssql / bin / mssql-conf
Source: https: //www.jianshu.com/p/2adcf1f0655d