当前位置:网站首页>CentOS 7 installing SQL server2017 (Linux)

CentOS 7 installing SQL server2017 (Linux)

2022-06-24 17:15:00 TX-QGS

# download  Microsoft SQL Server Red Hat  Repository profiles 
curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo
# install  SQL Server
yum install -y mssql-server
# choice  SQL Server  A version of :
  1) Evaluation ( free , No production license ,180  Day limit )
  2) Developer ( free , No production license )
  3) Express ( free )
  4) Web ( Paid version )
  5) Standard ( Paid version )
  6) Enterprise ( Paid version )
  7) Enterprise Core ( Paid version )
  8)  I bought the license through the retail channel and have the product key to enter .

/opt/mssql/bin/mssql-conf setup

I chose 2-> Consent clause -> Choose the language you need

 # To verify whether the service is started 
systemctl status mssql-server
ps -ef | grep mssql
# Download client tools 
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo
yum install -y mssql-tools
# Turn off firewall 
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl disable --now firewalld
 or 
# Remote connection SQL Server, Turn on the... On the firewall SQL Server port , The default port is 1433
firewall-cmd --zone=public --add-port=1433/tcp --permanent
firewall-cmd --reload
# install SQL Server client , Download source 
curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/centos/7/prod.repo
# Download client 
yum install mssql-cli -y
mssql-cli -S  Host name  -U SA  -P ' password '

Test whether it can be externally connected SQL server database

# View port usage 
netstat -tnlp
原网站

版权声明
本文为[TX-QGS]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/03/20210329190326129w.html

随机推荐