Forked from galanteh/install_sqlserver_2017_ubuntu.txt
Created
October 22, 2019 15:29
-
-
Save rajibdpi/c7e0c10eda5650f8b18d164c8b7179c2 to your computer and use it in GitHub Desktop.
Install Script SQLServer 2017 SP1 on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)" | |
sudo apt-get update | |
sudo apt-get install -y mssql-server | |
sudo /opt/mssql/bin/mssql-conf setup | |
sudo systemctl enable mssql-server | |
sudo systemctl start mssql-server | |
sudo /opt/mssql/bin/mssql-conf set sqlagent.enabled true | |
sudo systemctl restart mssql-server | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list | |
sudo apt-get update | |
sudo apt-get -y install mssql-tools unixodbc-dev | |
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile | |
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc | |
source ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment