Red Hat Enterprise Linux 7.2下使用RPM包安装SQL Server vNext
1.下载安装包
mssql-server:https://packages.microsoft.com/rhel/7/mssql-server/
mssql-tools:https://packages.microsoft.com/rhel/7/prod/
[root@FSZABBIX home]# ll
总用量 150072
-rw-r--r-- 1 root root 4036892 1月 23 14:59 msodbcsql-13.1.3.0-1.x86_64.rpm
-rw-r--r-- 1 root root 148973180 1月 23 14:33 mssql-server-14.0.200.24-2.x86_64.rpm
-rw-r--r-- 1 root root 254352 1月 23 14:58 mssql-tools-14.0.2.0-1.x86_64.rpm
2.安装mssql-server
[root@FSZABBIX home]# rpm -ivh mssql-server-14.0.200.24-2.x86_64.rpm
警告:mssql-server-14.0.200.24-2.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID be1229cf: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:mssql-server-14.0.200.24-2 ################################# [100%]
+-------------------------------------------------------------------+
| Please run /opt/mssql/bin/sqlservr-setup to complete the setup of |
| Microsoft(R) SQL Server(R). |
+-------------------------------------------------------------------+
3.设置数据库并启动
[root@FSZABBIX home]# /opt/mssql/bin/sqlservr-setup
Microsoft(R) SQL Server(R) Setup
You can abort setup at anytime by pressing Ctrl-C. Start this program
with the --help option for information about running it in unattended
mode.
The license terms for this product can be downloaded from
http://go.microsoft.com/fwlink/?LinkId=746388 and found
in /usr/share/doc/mssql-server/LICENSE.TXT.
Do you accept the license terms? If so, please type "YES": yes
Please enter a password for the system administrator (SA) account:
The specified password does not meet SQL Server password policy requirements
because it is not complex enough. The password must be at least 8 characters
long and contain characters from three of the following five sets: uppercase
letters, lowercase letters, numbers, non-alphanumeric characters, or unicode
characters that are categorized as alphabetic characters, but are not
uppercase or lowercase.
Please enter a password for the system administrator (SA) account:
Please confirm the password for the system administrator (SA) account:
Setting system administrator (SA) account password...
Do you wish to start the SQL Server service now? [y/n]: Y
Do you wish to enable SQL Server to start on boot? [y/n]: Y
Created symlink from /etc/systemd/system/multi-user.target.wants/mssql-server.service to /usr/lib/systemd/system/mssql-server.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mssql-server-telemetry.service to /usr/lib/systemd/system/mssql-server-telemetry.service.
Setup completed successfully.
4.通过systemctl来检查mssql-server的服务的启动状态
[root@FSZABBIX home]# systemctl status mssql-server
● mssql-server.service - Microsoft(R) SQL Server(R) Database Engine
Loaded: loaded (/usr/lib/systemd/system/mssql-server.service; enabled; vendor preset: disabled)
Active: active (running) since 一 2017-01-23 14:44:49 CST; 6min ago
Main PID: 9638 (sqlservr)
CGroup: /system.slice/mssql-server.service
├─9638 /opt/mssql/bin/sqlservr
└─9648 /opt/mssql/bin/sqlservr
1月 23 14:44:57 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:57.90 spid20s The Service Broker endpoint is in disabled or stopped state.
1月 23 14:44:57 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:57.90 spid20s The Database Mirroring endpoint is in disabled or stopped state.
1月 23 14:44:57 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:57.93 spid20s Service Broker manager has started.
1月 23 14:44:57 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:57.98 spid16s A self-generated certificate was successfully loaded for encryption.
1月 23 14:44:58 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:58.01 spid16s Server is listening on [ 0.0.0.0 <ipv4> 1433].
1月 23 14:44:58 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:58.05 Server Server is listening on [ 127.0.0.1 <ipv4> 1434].
1月 23 14:44:58 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:58.08 Server Dedicated admin connection support was established for listening locally on port 1434.
1月 23 14:44:58 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:58.08 spid16s Recovery is complete. This is an informational message only. No user action is required.
1月 23 14:44:58 FSZABBIX sqlservr[9638]: 2017-01-23 06:44:58.09 spid16s SQL Server is now ready for client connections. This is an informational message; no user action is required.
1月 23 14:50:00 FSZABBIX sqlservr[9638]: 2017-01-23 06:50:00.95 spid51 Using 'dbghelp.dll' version '4.0.5'
5.配置数据库
通过自带的mssql-conf命令进行一些简单的配置,可配置项不多,主要是监听端口,默认的数据文件所在目录,日志所在目录,备份所在目录等
[root@FSZABBIX home]# /opt/mssql/bin/mssql-conf list
Supported settings using the 'set' option:
tcpport
defaultbackupdir
defaultdumpdir
defaultlogdir
defaultdatadir
For all command line options use -h or –help
6.安装mssql-tool
如果希望在服务器上直接通过sqlcmd命令行登入数据库,还需要额外安装一个mssql-tools的RPM包,这个安装包里包括sqlcmd和bcp(Bulk import-export utility)
安装mssql-tool,需要先安装msodbcsql包
[root@FSZABBIX home]# rpm -ivh msodbcsql-13.1.3.0-1.x86_64.rpm
警告:msodbcsql-13.1.3.0-1.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID be1229cf: NOKEY
准备中... ################################# [100%]
The license terms for this product can be downloaded from
http://go.microsoft.com/fwlink/?LinkId=746838 and found in
/usr/share/doc/msodbcsql/LICENSE.TXT . By entering 'YES',
you indicate that you accept the license terms.
Do you accept the license terms? (Enter YES or NO)
yes
Please enter YES or NO
Do you accept the license terms? (Enter YES or NO)
YES
正在升级/安装...
1:msodbcsql-13.1.3.0-1 ################################# [100%]
[root@FSZABBIX home]# rpm -ivh mssql-tools-14.0.2.0-1.x86_64.rpm
警告:mssql-tools-14.0.2.0-1.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID be1229cf: NOKEY
准备中... ################################# [100%]
The license terms for this product can be downloaded from
http://go.microsoft.com/fwlink/?LinkId=746949 and found in
/usr/share/doc/mssql-tools/LICENSE.txt . By entering 'YES',
you indicate that you accept the license terms.
Do you accept the license terms? (Enter YES or NO)
YES
正在升级/安装...
1:mssql-tools-14.0.2.0-1 ################################# [100%]
7.通过sqlcmd登录数据库
Red Hat Enterprise Linux 7.2下使用RPM包安装SQL Server vNext的更多相关文章
- Configure Always On Availability Group for SQL Server on RHEL——Red Hat Enterprise Linux上配置SQL Server Always On Availability Group
下面简单介绍一下如何在Red Hat Enterprise Linux上一步一步创建一个SQL Server AG(Always On Availability Group),以及配置过程中遇到的坑的 ...
- 如何安装win10+Red Hat Enterprise Linux双系统?
1,如何安装win10+Red Hat Enterprise Linux双系统???? 有很多人(没做过调查,可能就我自己想装吧)想要安装Red Hat Enterprise Linux系统,但是又不 ...
- 在Red Hat Enterprise Linux 5 64-bit安装oracle11g r2
网上这种文档一搜就一堆,没别的目的,刚接触oracle为了加深理解记忆.只要是跟我的版本一样操作系统和oracle软件,按照步骤肯定可以成功安装 在虚拟机上安装Red Hat Enterprise L ...
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...
- SQL Server on Red Hat Enterprise Linux——RHEL上的SQL Server(全截图)
本文从零开始一步一步介绍如何在Red Hat Enterprise Linux上搭建SQL Server 2017,包括安装系统.安装SQL等相关步骤和方法(仅供测试学习之用,基础篇). 一. 创 ...
- Configure Red Hat Enterprise Linux shared disk cluster for SQL Server——RHEL上的“类”SQL Server Cluster功能
下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...
- Red Hat Enterprise Linux 6 “桌面”、“工作站”、“服务器” 版本差异比较
Red Hat Enterprise Linux 6,共有三个版本.通过安装发现,所谓的"桌面"."工作站"."服务器"这三个版本的区别就在 ...
- Red Hat Enterprise Linux 5 64-bit chinese language support config steps
Red Hat Enterprise Linux 5 64-bit 系统下安装中文语言支持方法 测试环境:Windows2012+Vmvare9.0+Red Hat Enterprise Linux ...
- 如何下载Red Hat Enterprise Linux系统
关于如何下载Red Hat Enterprise Linux系统? 这是一个既简单,又复杂的问题.简单是因为我以为她很简单,复杂是因为下载的过程有点复杂的. 相信去Oracle官网下载过东西的同学对下 ...
随机推荐
- unable to create new native thread
一.认识问题: 首先我们通过下面这个 测试程序 来认识这个问题:运行的环境 (有必要说明一下,不同环境会有不同的结果):32位 Windows XP,Sun JDK 1.6.0_18, eclipse ...
- 【题解】洛谷P4707重返现世
在跨年的晚上玩手机被妈妈骂了赶来写题……呜呜呜……但是A题了还是很开心啦,起码没有把去年的题目留到明年去做ヾ(◍°∇°◍)ノ゙也祝大家2019快乐! 这题显然的 kth min-max 容斥就不说了, ...
- Xcode一个project生成多个App
网上有很多奇奇怪怪的复杂的方案,其实误导了,方法很简单: 打开项目属性 修改Bundle Identifiler 随便生成了四个App,如下所示:
- Java EE之Servlet
1.创建Servlet类 Servlet在Java EE API规范中的定义: Servlet是一个运行在Web服务器中的Java小程序.Servlet将会接收和响应来自Web客户端的请求,使用HTT ...
- 【线段树合并】【P2824】 [HEOI2016/TJOI2016]排序
Description 给定一个长度为 \(n\) 的排列,有 \(m\) 次操作,每次选取一段局部进行升序或降序排序,问你一波操作后某个位置上的数字是几 Hint \(1~\leq~n,~m~\le ...
- 【数学】【CF1091D】 New Year and the Permutation Concatenation
Description 给定一个数 \(n\),将所有 \(1~\sim~n\) 的排列按照字典序放到一个序列中,求有多少长度为 \(n\) 的子序列 \(p_i~p_{i+1}~\dots~p_{i ...
- Docker Macvlan
参考博客:https://blog.csdn.net/daye5465/article/details/77412619 一.Macvlan 交换机的vlan是根据端口来划分的,如果一个PC接入vla ...
- Python操作sqlserver 2000
在网上找到了pyodbc这个模块,本人操作系统是 Ubuntu 16.04 , Python 2.7 已经安装了pip 按照 官方文档 的步骤成功安装. 但是需要跨平台. 使用pyodbc在wind ...
- ubuntu16.04下caffe以cpu运行faster rcnn demo
参考https://haoyu.love/blog404.html 获取并修改代码 首先,我们需要获取源代码: git clone --recursive https://github.com/rbg ...
- openstack虚拟机启动过程源码分析
源码版本:H版 以nova-api为起点开始分析! 一.在nova-api进程中进行处理 根据对nova api的分析,当请求发过来的时候,由相应的Controller进行处理,此处如下: nova/ ...