SQL Server官方并未提供在Debian系統上的安裝指南,但可以通過以下步驟在Debian上安裝SQL Server:
sudo apt update
sudo apt upgrade -y
sudo apt install curl gnupg apt-transport-https -y
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo bash -c 'echo "deb [arch=amd64,arm64] https://packages.microsoft.com/debian/10/prod $(lsb_release -rs) main" > /etc/apt/sources.list.d/mssql-server.list'
請注意,上述命令中的lsb_release -rs
應替換為實際的Debian版本號。
sudo apt update
sudo apt install -y ms sql-server
sudo /opt/mssql/bin/mssql-conf setup
在配置過程中,您將需要設置SA(系統管理員)帳戶的密碼。
sudo systemctl start ms sql-server
sudo systemctl status ms sql-server
sudo systemctl enable ms sql-server