systemctl status mssql-server:查看sqlserver的状态 sudo systemctl stop mssql-server:停掉sqlserver服务 sudo systemctl Start mssql-server:开启sqlserver服务
停止并且禁止sqlserver自启动
sudo systemctl stop mssql-server sudo systemctl disable mssql-server
设置开机自启并启动sqlserver
sudo systemctl enable mssql-server
sudo systemctl start mssql-server