简体   繁体   English

如何在Ubuntu 14.04中安装mssql

[英]How to install mssql in ubuntu 14.04

I want to install mssql with 2008/2012.Please suggest proper doc or steps to install.I have try to instaall from https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-ubuntu but it give me follwoing error - 我想在2008/2012中安装mssql。请建议正确的文档或安装步骤。我尝试从https://docs.microsoft.com/zh-cn/sql/linux/sql-server-linux-setup安装-ubuntu,但它给我以下错误-

/opt/mssql/bin/sqlservr: /usr/lib/x86_64-linux-gnu/libsss_nss_idmap.so.0: no version information available (required by /opt/mssql/bin/sqlservr)
Starting Microsoft SQL Server...
sudo: systemctl: command not found
Error starting Microsoft SQL Server.

while run command - 在运行时命令-

sudo /opt/mssql/bin/mssql-conf setup sudo / opt / mssql / bin / mssql-conf设置

you can't install mssql in ubuntu 14.04.. Docs clearly state supported versions 您无法在ubuntu 14.04中安装mssql。 文档清楚地说明了受支持的版本

SQL Server vNext CTP 2.0 is supported on the following platforms: 以下平台支持SQL Server vNext CTP 2.0:

在此处输入图片说明

Just to add ,I thought installing docker would support versions less than 16,but from docker file we could see below 只是添加一下,我以为安装docker支持的版本低于16,但是从docker文件中我们可以看到以下内容

Base OS layer: Latest Ubuntu LTS. 基本操作系统层:最新的Ubuntu LTS。
FROM ubuntu:16.04 来自ubuntu:16.04

which means it needs ubuntu:16.04 versions to be present 这意味着它需要ubuntu:16.04版本

For a workaround, you can use run a Docker container ( microsoft/mssql-server-linux ), eg 要解决此问题,可以使用运行Docker容器( microsoft/mssql-server-linux ),例如

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=yourStrongPassword!" -p 1433:1433 microsoft/mssql-server-linux

Then connect to localhost:1433 with your SQL client. 然后使用您的SQL客户端连接到localhost:1433

不能这样,因为根据文档您必须具有16.04+ Ubuntu版本才能安装MSSQL。

It is not possible to instal sql server 2008 or 2012 on any non window platform. 无法在任何非窗口平台上安装sql server 2008或2012。 This feature came with 2016 or 2017. 此功能随2016或2017一起提供。

https://www.microsoft.com/en-us/sql-server/sql-server-2017 https://www.microsoft.com/zh-cn/sql-server/sql-server-2017

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM