Install sqlserver offline under centos. Install sqlserver without network.

First download the offline resource package
Insert image description here

There are 4 files in the package. Install them in the following order . Otherwise, an error about missing dependent libraries may be reported, resulting in incomplete functionality.

1. First install mssql-server-14.0.3030.27-1.x86_64.rpm

yum localinstall mssql-server-14.0.3030.27-1.x86_64.rpm

Then follow the command line prompts and execute

sudo /opt/mssql/bin/mssql-conf setup


2. Then install unixODBC-utf16-2.3.1-1.x86_64.rpm

yum localinstall unixODBC-utf16-2.3.1-1.x86_64.rpm

3. Then install msodbcsql-

yum localinstall msodbcsql-

4. Finally install mssql-tools-

yum localinstall mssql-tools-

After installation is complete

find / -name sqlcmd

${路径}/sqlcmd -U sa

Insert image description here

================================================== =======
The following is sqlserver to enable remote login

firewall-cmd --zone=public --add-port=1433/tcp --permanent
firewall-cmd --reload

In navicat, create a new sqlserver connection
and enter the address, username, and password to connect.

Insert image description here

Guess you like