2017-11-14 19 views
1

Centos 7에 MSSSQL을 설치했습니다. 설치가 완료되었지만 sqlcmd를 통해 SQL에 연결할 때 다음과 같이 표시됩니다. 오류.Centos : Sqlcmd : 오류 : SQL Server 용 Microsoft ODBC 드라이버 13 : TCP 공급자 : 오류 코드 0x2749

[[email protected]*03****k ~]# sqlcmd -S 127.0.0.1 -U sa -P H*****3 
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : Login timeout expired. 
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : TCP Provider: Error code 0x2749. 
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.. 

[email protected]*****k ~]# netstat -ntpl 
Active Internet connections (only servers) 
Proto Recv-Q Send-Q Local Address   Foreign Address   State  PID/Program name  
tcp  0  0 0.0.0.0:22    0.0.0.0:*    LISTEN  699/sshd    
tcp  0  0 127.0.0.1:25   0.0.0.0:*    LISTEN  793/master   
tcp6  0  0 :::80     :::*     LISTEN  704/httpd   
tcp6  0  0 :::22     :::*     LISTEN  699/sshd  

아무도 도와 줄 수 있습니까?

답변

0

많은 시간을 낭비 한 후 Stopped SQL Service로 인해 이런 일이 발생했음을 알게되었습니다. 나는 시작하려고 노력했지만 어떻게 이런 일이 일어나지 않는지에 관해서 이야기한다. MSSQL 서비스가 실패 할 때마다 가상 서버에 5GB 이상의 메모리가 있습니다.

r*****k:~# sudo systemctl status mssql-server

● 경우 MSSQL-server.service - Microsoft SQL Server 데이터베이스 엔진 로드 :로드 (/lib/systemd/system/mssql-server.service, 활성화, 공급 업체의 사전 설정 : 사용 가능) 활동 : 비활성 (죽은) (결과 : 종료 코드) 이후 2017-11-17 15:39:39 UTC; 1 분 37S 전에

Process: 4906 ExecStart=/opt/mssql/bin/sqlservr (code=exited, status=255) 
Main PID: 4906 (code=exited, status=255) 

Nov 17 15:39:39 SV0*****com systemd[1]: mssql-server.service: Unit entered failed state. 

Nov 17 15:39:39 SV0*****com systemd[1]: mssql-server.service: Failed with result 'exit-code'. 

Nov 17 15:39:39 SV0*****.com systemd[1]: mssql-server.service: Service hold-off time over, scheduling restart. 

Nov 17 15:39:39 SV0*****.com systemd[1]: Stopped Microsoft SQL Server Database Engine. 

Nov 17 15:39:39 SV0*****.com systemd[1]: mssql-server.service: Start request repeated too quickly. 

Nov 17 15:39:39 SV0*****.com systemd[1]: Failed to start Microsoft SQL Server Database Engine. 

마지막으로, 나는 새로운 가상 머신을 생성하고 SQL 서비스가 잘 작동된다. SQL 데이터베이스가 예상대로 작동합니다.