MSSQL Server on Linux预览版如何安装
1.下载安装程序
MSSQL Server on Linux预览版可以从官网https://www.microsoft.com/en-us/sql-server/sql-server-downloads下载,我们需要选择“SQL Server on Red Hat Enterprise Linux”,然后根据机器的架构选择对应的安装程序,下载完成后,需要将安装程序上传到Linux服务器中。
2.安装所需环境
在安装MSSQL Server on Linux之前,需要先安装一些必要的环境,可以使用以下代码安装:
sudo yum update -y
sudo yum install -y curl unixODBC-devel
sudo curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
sudo yum remove -y mssql-server
sudo ACCEPT_EULA=Y yum install -y mssql-server
sudo systemctl start mssql-server
sudo systemctl status mssql-server3.配置MSSQL Server on Linux
安装完必要的环境后,就可以开始配置MSSQL Server on Linux,可以使用以下命令运行配置脚本:
sudo /opt/mssql/bin/mssql-conf setup
Choose an edition of SQL Server
Enter the SQL Server system administrator password
Confirm the SQL Server system administrator password
Configure the Firewall
Restart the SQL Server service完成上述步骤后,MSSQL Server on Linux就安装完成了,可以使用下面的命令查看MSSQL Server的状态:
sudo systemctl status mssql-server上一篇
Qt怎么实现NTP服务器时间同步 猜您想看
-
Cloudera数据加密概述及用法
Clouder...
2023年05月25日 -
利用GPT进行罪犯隐匿资讯分析
一、GPT技术...
2023年05月15日 -
Windows如何处理使用中的HDMI问题
Windows...
2023年04月27日 -
Popmetal ubuntu系统如何实现jpeg硬解
如何在Pop!...
2023年07月23日 -
手机蓝牙不能稳定连接汽车的音响怎么处理?
智能手机蓝牙不...
2023年04月28日 -
Django怎么实现博客帖子增删改查功能
1、Djang...
2023年05月23日