公司的数据服务器不能正常访问,发现是在ubuntu上安装了sqlserver 先看看端口
netstat -nap | grep 1433没有开启 查看服务状态
systemctl status mssql-server错误:Failed to start Microsoft SQL Server Database Engine. 启动sqlserver服务器:
systemctl start mssql-server错误: sudo unable to resolve host XXX 发现有改了机器名,/ect/hosts 和 /etc/hostname 不一致 搜索按照情况
find / -name mssql经查看发现安装是试用版决定重装
SQL Server on Linux官方链接 自动安装
sudo add-apt-repository “$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list)” curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add sudo apt-get install -y mssql-server
ubuntu中sqlserver2019安装文件 手工下载: wget -r -np -nd https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server/ 手工安装: sudo dpkg -i *.deb
sudo /opt/mssql/bin/mssql-conf setup systemctl status mssql-server