Denna guide hjälper dig att installera Microsoft SQL Server på din VPS-server som kör Debian 12.
Förutsättningar
- En VPS-server med Debian 12 installerad.
- Root-åtkomst till servern.
Steg 1: Uppdatera ditt system
Innan du installerar SQL Server, se till att ditt system är uppdaterat. Kör följande kommandon:
sudo apt update
sudo apt upgrade -y
Steg 2: Installera nödvändiga paket
Installera de nödvändiga paketen för SQL Server:
sudo apt install curl apt-transport-https software-properties-common -y
Steg 3: Importera de offentliga GPG-nycklarna
Kör följande kommando för att importera GPG-nycklarna:
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Steg 4: Registrera Microsoft SQL Server-repositoriet
Lägg till SQL Server-repositoriet:
curl https://packages.microsoft.com/config/debian/12/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
Steg 5: Installera SQL Server
Uppdatera paketlistan och installera SQL Server:
sudo apt update
sudo ACCEPT_EULA=Y apt install -y mssql-server
Steg 6: Konfigurera SQL Server
Efter installationen, kör konfigurationsskriptet för att konfigurera SQL Server:
sudo /opt/mssql/bin/mssql-conf setup
Följ instruktionerna för att ställa in din SQL Server-version och lösenord.
Steg 7: Installera SQL Server-kommandoradsverktyg (valfritt)
Om du vill hantera SQL Server från kommandoraden, installera SQL Server-verktygen:
sudo apt install -y mssql-tools unixodbc-dev
För att använda verktygen, lägg till dem i din PATH genom att köra:
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
source ~/.bash_profile
Steg 8: Bekräfta installationen
För att kontrollera om SQL Server körs, använd:
systemctl status mssql-server
Slutsats
Du har framgångsrikt installerat Microsoft SQL Server på din VPS-server med Debian 12. Nu kan du börja använda SQL Server för dina databaser.
Windows VPS
Windows VPS UK
Windows VPS
VPS Windows
Serwer VPS Windows
VPS Windows Deutschland
Windows VPS Hosting
VPS Windows España
Windows VPS Nederland
VPS Windows Italia
VPS Windows Portugal
VPS Windows Россия
VPS Windows Украина
VPS Windows 日本
VPS Windows Sverige
VPS Windows Norge
VPS Windows عربى
VPS Windows Türkiye
Remote Desktop Services (RDS)
RDS CAL (Client Access License)
Remote Desktop VPS
Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting
#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds
vps windows