Linux安装sqlserver

  • 安装前准备
yum install bzip2
yum install gdb
yum install libsss_nss_idmap
  • 下载rpm包
wget https://packages.microsoft.com/rhel/7/mssql-server-2017/mssql-server-14.0.1000.169-2.x86_64.rpm

另附自己的下载链接https://download.csdn.net/download/hhhliushen/12317160

  • rpm安装
rpm -ivh mssql-server-14.0.1000.169-2.x86_64.rpm
  • 安装sqlserver
sudo /opt/mssql/bin/mssql-conf setup
  • 如果服务器的内存不够,可以如下修改
cd   /opt/mssql/bin
mv sqlservr sqlservr.old

python
a = open("sqlservr.old", "rb").read()
b = a.replace("\x80\x10\xb7\xc1", "\x00\x80\x84\x1e")
open("sqlservr", "wb").write(b)
chmod +x sqlservr
  • 启动/重启/关闭服务
systemctl stop mssql-server
systemctl start mssql-server
systemctl restart mssql-server

默认登陆用户名sa

你可能感兴趣的:(Linux安装sqlserver)