centos6.9安装sql server入坑

首先本人参考网站为https://docs.microsoft.com/zh-cn/sql/linux/quickstart-install-connect-red-hat?view=sql-server-2017
1.下载 Microsoft SQL Server 2017 Red Hat 存储库配置文件:

 curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo 

出现了以下问题:curl: (6) Couldn’t resolve host ‘packages.microsoft.com’
解决方法:https://blog.csdn.net/play_chess_ITmanito/article/details/84658370
安装依赖

yum install wget bzip2 gdb libsss_nss_idmap -y 

2.运行以下命令,安装 SQL Server:

sudo yum install -y mssql-server

出现错误:

yum install -y mssql-server
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * epel: fedora.cs.nctu.edu.tw
 * extras: mirrors.163.com
 * updates: mirrors.163.com
解决依赖关系
--> 执行事务检查
---> Package mssql-server.x86_64 0:14.0.3076.1-2 will be 安装
--> 处理依赖关系 openssl >= 1:1.0.1,它被软件包 mssql-server-14.0.3076.1-2.x86_64 需要
--> 处理依赖关系 systemd-units,它被软件包 mssql-server-14.0.3076.1-2.x86_64 需要
--> 处理依赖关系 systemd-units,它被软件包 mssql-server-14.0.3076.1-2.x86_64 需要
--> 处理依赖关系 systemd,它被软件包 mssql-server-14.0.3076.1-2.x86_64 需要
--> 处理依赖关系 numactl-libs,它被软件包 mssql-server-14.0.3076.1-2.x86_64 需要
--> 处理依赖关系 systemd,它被软件包 mssql-server-14.0.3076.1-2.x86_64 需要
--> 完成依赖关系计算
错误:Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
          Requires: systemd-units
错误:Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
          Requires: systemd
错误:Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
          Requires: openssl >= 1:1.0.1
          已安装: openssl-1.0.1e-57.el6.x86_64 (@anaconda-CentOS-201703281317.x86_64/6.9)
              openssl = 1.0.1e-57.el6
错误:Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
          Requires: numactl-libs
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

解决方案:
3.需要centos7才能进行配置

你可能感兴趣的:(centos6.9安装sql server入坑)