#参考链接:http://blog.51cto.com/gaowenlong/1903477
#首先再https://packages.microsoft.com/config/rhel/找到对应岑田OS版本的仓库配置文件
curl https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo > /etc/yum.repos.d/mssql-server.repo
yum install -y mssql-server
#配置路径/opt/mssql/bin/mssql-conf
#选择版本是,免费版是3) Express (free),输入密码,等待安装完成
cd /opt/mssql/bin
./mssql-conf setup
#启动服务
systemctl start mssql-server
#本地客户端
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo
yum install -y mssql-tools
#连接命令,以后常用可添加到环境变量,我懒
cd /opt/mssql-tools/bin
./sqlcmd -S localhost -U sa
centOS下SQL SERVR的安装
最新推荐文章于 2025-05-19 18:53:19 发布