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服务器时间同步 猜您想看
-
树莓派中uart串口通信如何配置使用
1. 引脚配置...
2023年07月23日 -
单进程+selenium模拟怎么爬取领导留言并整合成CSV文件
单进程+Sel...
2023年07月04日 -
PHP中命名空间是怎样的存在
命名空间是PH...
2023年07月22日 -
Docker容器中的ZooKeeper不响应四字命令的解决方法
一、问题描述:...
2023年07月22日 -
elasticsearch的使用示例分析
Elastic...
2023年07月20日 -
如何卸载 Magisk 模块?
如何卸载...
2023年04月17日