0, 导入微软公钥
1 | wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - |
1, 添加SQLSERVER 2019源
1 | sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2019.list)" |
2, 安装mssql2019
1 | sudo apt update |
3, 初始化mssql
1 | sudo /opt/mssql/bin/mssql-conf setup |
4, 至此你的sqlserver就运行起来了,开放安全组即可.
1 | sudo systemctl status mssql-server.service |