linux上的sqlserver服务总断,对 Linux 上的 SQL Server 进行故障排除

本文详述了如何在Linux环境下对SQL Server进行故障排除,包括连接失败问题的解决、SQL Server服务的管理和监控、日志文件的访问以及性能优化。针对连接问题,建议检查localhost映射、服务器可达性、端口开放和用户名密码等。同时,提供了启动、停止和重启SQL Server服务的命令,并指出如何访问和理解错误日志,以便定位和解决问题。
摘要由CSDN通过智能技术生成

对 Linux 上的 SQL Server 进行故障排除Troubleshoot SQL Server on Linux

05/01/2018

本文内容

适用于:Applies to: 719f28649793c602f9270966b5ed5c39.pngSQL ServerSQL Server(所有支持的版本)719f28649793c602f9270966b5ed5c39.pngSQL ServerSQL Server (all supported versions) - Linux适用于:Applies to: 719f28649793c602f9270966b5ed5c39.pngSQL ServerSQL Server(所有支持的版本)719f28649793c602f9270966b5ed5c39.pngSQL ServerSQL Server (all supported versions) - Linux

本文档介绍如何对 Linux 上或 Docker 容器中运行的 Microsoft SQL Server 进行故障排除。This document describes how to troubleshoot Microsoft SQL Server running on Linux or in a Docker container. 在对 Linux 上的 SQL Server 进行故障排除时,请记得查看 Linux 上的 SQL Server 发行说明中的支持功能和已知限制。When troubleshooting SQL Server on Linux, remember to review the supported features and known limitations in the SQL Server on Linux Release Notes.

提示

For answers to frequently asked questions, see the SQL Server on Linux FAQ.

解决连接失败问题Troubleshoot connection failures

如果在连接到 Linux SQL Server 时存在问题,可以检查以下几点。If you are having difficulty connecting to your Linux SQL Server, there are a few things to check.

如果无法使用 localhost 进行本地连接,请尝试改用 IP 地址 127.0.0.1。If you are unable to connect locally using localhost, try using the IP address 127.0.0.1 instead. Localhost 可能未正确映射到此地址。It is possible that localhost is not properly mapped to this address.

验证是否可从客户端计算机访问服务器名称或 IP 地址。Verify that the server name or IP address is reachable from your client machine.

提示

若要查找 Ubuntu 计算机的 IP 地址,可运行 ifconfig 命令,如以下示例所示:To find the IP address of your Ubuntu machine, you can run the ifconfig command as in the following example:

sudo ifconfig eth0 | grep 'inet addr'

对于 Red Hat,可使用 ip addr,如以下示例所示:For Red Hat, you can use the ip addr as in the following example:

sudo ip addr show eth0 | grep "inet"

但如果是 Azure VM,则此方法不适用。One exception to this technique relates to Azure VMs.

如果适用,请检查是否已在防火墙上打开了 SQL Server 端口(默认为 1433)。If applicable, check that y

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值