Recent Posts
Today
Total
05-12 13:11
관리 메뉴

Secure-EDU

ubuntu 20.04 에 mssql-server(2017) 설치 본문

일반 자료[참고]

ubuntu 20.04 에 mssql-server(2017) 설치

Secure-EDU 2022. 10. 6. 12:43

ubuntu 20.04 에 mssql-server(2017) 설치


1. 먼저 APT Update 진행
# apt udpate

2. Import the public repository GPG keys.
# curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

3. Register the Microsoft Ubuntu repository.
# curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list

4. MSSQL-Server 패키지 설치
# apt-get update 
--------- libjemalloc1 설치 ---------
# wget http://ftp.osuosl.org/pub/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-11_amd64.deb
# dpkg -i libjemalloc1_3.6.0-11_amd64.deb

--------- libssl1.0.0 설치 ---------
# echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | sudo tee -a /etc/apt/sources.list.d/bionic.list
# apt-get install libssl1.0-dev

--------- mssql-tools, unixodbc-dev 설치 및 Profile 등록 ---------
# apt-get 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

5. MSSQL-Server 설치
# apt-get install mssql-server

6. MSSQL Conf 설정
# /opt/mssql/bin/mssql-conf setup

더보기

* 라이센스 버전 및 사용 허용 정책

  1. Evaluation (무료, 프로덕션 사용권 없음, 180일 제한)
  2. Developer (무료, 프로덕션 사용권 없음)
  3. Express (무료) – 라이선스가 없을 경우 선택
  4. Web (유료)
  5. Standard (유료)
  6. Enterprise (유료)
  7. Enterprise Core (유료)
  8. 소매 채널을 통해 라이선스를 구했으며 입력할 제품 키가 있습니다. – 라이선스가 있을 경우 선택

* 라이센스 허용 정책 설정

  • Do you accept the license terms? [Yes/No] : y or yes 입력

* SA 패스워드 입력

  • Enter the SQL Server system administraotr password: [비밀번호입력]
  • Confirm the SQL Server system administraotr password: [비밀번호입력확인]

7. MSSQL 설치 확인
# sqlcmd -U SA
Password: (비밀번호 입력)
1> select @@version
2> go
----------------------------------------------------------------------------------------------------
Microsoft SQL Server 2017 (RTM-CU31) (KB5016884) - 14.0.3456.2 (X64)
        Sep  2 2022 11:01:50
        Copyright (C) 2017 Microsoft Corporation
        Developer Edition (64-bit) on Linux (Ubuntu 20.04.4 LTS)

(1 rows affected)


* 참고 사이트

https://learn.microsoft.com/ko-kr/sql/linux/quickstart-install-connect-ubuntu 

 

Ubuntu: SQL Server on Linux 설치 - SQL Server

이 빠른 시작에서는 Ubuntu에 SQL Server 2017 또는 SQL Server 2019를 설치한 다음, sqlcmd를 사용하여 데이터베이스를 만들고 쿼리하는 방법을 보여 줍니다.

learn.microsoft.com

 

https://learn.microsoft.com/ko-kr/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver16 

 

Ubuntu: SQL Server on Linux 설치 - SQL Server

이 빠른 시작에서는 Ubuntu에 SQL Server 2017 또는 SQL Server 2019를 설치한 다음, sqlcmd를 사용하여 데이터베이스를 만들고 쿼리하는 방법을 보여 줍니다.

learn.microsoft.com

 

* 문제 발생시

https://learn.microsoft.com/ko-kr/sql/linux/sql-server-linux-troubleshooting-guide?view=sql-server-ver16 

 

SQL Server on Linux 문제 해결 - SQL Server

Linux 또는 Docker 컨테이너에서 실행되는 SQL Server 문제를 해결합니다. 지원되는 기능 및 알려진 제한 사항에 대한 정보를 어디에서 찾을 수 있는지 알아봅니다.

learn.microsoft.com

 

Comments