성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Get Started with Milvus Vector DB i...
[정성태] cyberark/PipeViewer - A tool that...
[정성태] WinForms in a 64-Bit world – our st...
[정성태] 예제에서 SELECT_SQL도 내부적으로는 SqlCommand/...
[victor] SELECT_LINQ SELECT_SQL 같은 쿼리인...
[victor] 답변 갑사합니다. 예외(Exception)가 났습니다. ...
[정성태] 일단, 위의 방식대로 하면 예외(Exception) 없이 잘 동...
[정성태] Windows 10 (버전 1809)에 이런 기능이 ^^ 추가되...
[정성태] pde windbg extension ; https://lea...
[정성태] // GetEnumerator extensions for Ran...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>SQL Server 시작 오류 - error code 10013</h1> <p> SQL Server 서비스를 시작하는 경우 다음과 같은 오류가 발생할 수 있습니다.<br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Windows could not start the SQL Server (MSSQLSERVER) on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 10013.<br /> </div><br /> <br /> 최근 들어, 10013 오류(An attempt was made to access a socket in a way forbidden by its access permissions.)는 그냥 excludedportrange와 무조건 연관이 있습니다. ^^;<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > "Administered port exclusions" 설명 ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/12293'>https://www.sysnet.pe.kr/2/0/12293</a> </pre> <br /> 실제로 SQL Server의 기본 서비스 포트가 1433인데 excludedportrange를 확인해 보면 예약된 것을 확인할 수 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\Windows\System32> <span style='color: blue; font-weight: bold'>netsh int ipv4 show excludedportrange protocol=tcp</span> Protocol tcp Port Exclusion Ranges Start Port End Port ---------- -------- 80 80 1241 1340 <span style='color: blue; font-weight: bold'>1341 1440</span> 1565 1664 1665 1764 1955 2054 2055 2154 5357 5357 8060 8060 11735 11834 11835 11934 11935 12034 15000 15000 26974 27073 27074 27173 27174 27273 44363 44363 50000 50059 * * - Administered port exclusions. </pre> <br /> 저 설정을 지우기 위해 "netsh int ip reset"을 하는 것은 좀 그렇고, 이전 글에서 소개한 excludedportrange.exe 유틸리티를 사용해야 합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > "Administered port exclusions"이 아닌 포트 범위 항목을 삭제하는 방법 ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/12305'>https://www.sysnet.pe.kr/2/0/12305</a> excludedportrange.zip ; <a target='tab' href='https://github.com/stjeong/Utilities/blob/master/Binaries/excludedportrange.zip'>https://github.com/stjeong/Utilities/blob/master/Binaries/excludedportrange.zip</a> </pre> <br /> 따라서 excludedportrange.zip의 압축을 풀어 다음과 같이 실행하고,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > // 관리자 권한으로 실행 C:\temp> <span style='color: blue; font-weight: bold'>excludedportrange.exe tcp 1341 1440</span> tcp Deleting... 1341:100 0 </pre> <br /> 다시 1433 포트가 시스템에 의해 점유되지 않도록 우리가 미리 "Administered port exclusions"으로 등록하면 끝!<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > [추가] netsh int ipv4 Add excludedportrange protocol=tcp startport=1433 numberofports=1 store=persistent [삭제] netsh int ipv4 delete excludedportrange protocol=tcp startport=1433 numberofports=1 store=persistent </pre> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
2046
(왼쪽의 숫자를 입력해야 합니다.)