curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo
ll /etc/yum.repos.d/mssql-server.repo
yum update -y
yum install -y mssql-server
cd /opt/mssql/bin
./mssql.conf setup
cd ..
cd bin/
./mssql.conf setup
pkill sql
ps -ef |grep sql
./mssql-conf setup
systemctl start mssql-server
systemctl enable mssql-server
firewall-cmd --add-port='1433/tcp' --permanent
firewall-cmd –reload
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo
yum install -y mssql-tools
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc
systemctl status mssql-server
sqlcmd -S localhost -U SA -P ''
sqlcmd -S localhost -U SA -P 'Hangzhou@123'