Centos7.7中怎么安装SQL Server
发表于:2024-10-19 作者:千家信息网编辑
千家信息网最后更新 2024年10月19日,这篇文章主要介绍"Centos7.7中怎么安装SQL Server"的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇"Centos7.7中怎么安装SQL Serve
千家信息网最后更新 2024年10月19日Centos7.7中怎么安装SQL Server
这篇文章主要介绍"Centos7.7中怎么安装SQL Server"的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇"Centos7.7中怎么安装SQL Server"文章能帮助大家解决问题。
准备工作
系统版本:Centos7.7 ,内存4G(SQL Server内存要求至少2G),硬盘40G,1核CPU
SQL Server版本:SQL Server 2019,下载地址
SQL Server Management Studio 版本:V18.4,安装在windows客户端下载地址,Windows 2008R2(64位)或Windows8.1(64位)以上
关闭SELINUX
[root@localhost ~]# sed -i '/^SELINUX/s/enforcing/disabled/g' /etc/selinux/config && setenforce 0
添加软件源并安装依赖包
[root@localhost ~]# curl https://packages.microsoft.com/config/rhel/7/prod.repo -o /etc/yum.repos.d/msprod.repo[root@localhost ~]# yum -y install mssql-tools unixODBC-devel bzip2 gdb libsss_nss_idmap cyrus-sasl cyrus-sasl-gssapi
安装SQL Server2019
下载文章上面提供的SQL Server2019,上传到服务器并安装
[root@localhost ~]# rpm -ivh mssql-server-15.0.4003.23-3.x86_64.rpmPreparing... ################################# [100%]Updating / installing... 1:mssql-server-15.0.4003.23-3 ################################# [100%]+--------------------------------------------------------------+Please run 'sudo /opt/mssql/bin/mssql-conf setup'to complete the setup of Microsoft SQL Server+--------------------------------------------------------------+
运行初始化配制
[root@localhost ~]# /opt/mssql/bin/mssql-conf setupusermod: no changesChoose an edition of SQL Server: 1) Evaluation (free, no production use rights, 180-day limit) 2) Developer (free, no production use rights) 3) Express (free) 4) Web (PAID) 5) Standard (PAID) 6) Enterprise (PAID) - CPU Core utilization restricted to 20 physical/40 hyperthreaded 7) Enterprise Core (PAID) - CPU Core utilization up to Operating System Maximum 8) I bought a license through a retail sales channel and have a product key to enter.Details about editions can be found athttps://go.microsoft.com/fwlink/?LinkId=2109348&clcid=0x409Use of PAID editions of this software requires separate licensing through aMicrosoft Volume Licensing program.By choosing a PAID edition, you are verifying that you have the appropriatenumber of licenses in place to install and run this software.Enter your edition(1-8): 3 #这里选择了Express版本The license terms for this product can be found in/usr/share/doc/mssql-server or downloaded from:https://go.microsoft.com/fwlink/?LinkId=2104294&clcid=0x409The privacy statement can be viewed at:https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409Do you accept the license terms? [Yes/No]:Yes #输入Yes接受许可条目Enter the SQL Server system administrator password: #设置SA管理员密码Confirm the SQL Server system administrator password:Configuring SQL Server...The licensing PID was successfully processed. The new edition is [Express Edition].ForceFlush is enabled for this instance.ForceFlush feature is enabled for log durability.Created symlink from /etc/systemd/system/multi-user.target.wants/mssql-server.service to /usr/lib/systemd/system/mssql-server.service.Setup has completed successfully. SQL Server is now starting.
添加环境变量
[root@localhost ~]# echo 'export PATH=$PATH:/opt/mssql-tools/bin' > /etc/profile.d/mssql.sh[root@localhost ~]# source !$source /etc/profile.d/mssql.sh
防火墙添加服务
[root@localhost ~]# firewall-cmd --permanent --add-service=mssqlsuccess[root@localhost ~]# firewall-cmd --reloadsuccess
命令行工具连接测试
[root@localhost ~]# sqlcmd -S localhost -U saPassword:# 显示系统数据库1> select name,database_id from sys.databases;# 执行2> goname database_id-------------------------------------------------------------------------------------------------------------------------------- -----------master 1tempdb 2model 3msdb 4(4 rows affected)# 查看软件版本1> SELECT @@VERSION2> go ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Microsoft SQL Server 2019 (RTM-CU1) (KB4527376) - 15.0.4003.23 (X64)Dec 6 2019 14:53:33Copyright (C) 2019 Microsoft CorporationExpress Edition (64-bit) on Linux (CentOS Linux 7 (Core)) (1 rows affected)1>
在客户端连接数据库
安装上面提供的SSMS管理软件,安装完成之后搜索"ssms",打开该管理软件 输入服务器地址,身份验证选择"SQL Server身份验证",输入用户名密码,然后连接。 查看一下SQL Server版本
关于"Centos7.7中怎么安装SQL Server"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注行业资讯频道,小编每天都会为大家更新不同的知识点。
版本
软件
地址
知识
服务
管理
输入
内存
客户
客户端
密码
数据
数据库
文章
服务器
管理软件
系统
行业
身份
选择
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
华为网络安全防火墙上网
安卓系统软件开发论文
国家网络安全资格证
dgv人群数据库怎么查询
我的世界最强斗罗服务器武魂觉醒
互联网科技整合
杨浦租房软件开发
服务器100兆可以每秒传输吗
天津磐石市app软件开发
美信商户通服务器连接异常
事业单位做软件开发怎么样
解决办公软件开发问题
数据库建表时的约束有哪些
服务器安全组没设置
不属于精益软件开发原则
家庭网络安全检测软件
orscle数据库
开票软件服务器地址和端口最新
网络安全怎么搞
网络安全问题街道汇报
开软件开发公司多少钱
中国电信网络安全人才待遇
湖南专业网络技术询问报价
数据库和电子商务结合
网络安全设备哪些好
数据库系统工程师的面试题目
dz论坛 数据库恢复
windows服务器磁盘健康
嵌入式软件测试转嵌入式软件开发
达内学软件开发培训课程