IoT 발아기(11) - IIS 시작하기

IoT 발아기(11) - IIS 시작하기

인터넷 정보 서비스(IIS) 관리자를 통해 사이트를 추가하고 실행한다.

실행하는 목적은 ASP.NET MVC5를 이용해 만든 웹사이트로 JSN-270과 http 요청을 통해 PIN을 컨트롤하고

센서값을 받아와서 사이트 상에 차트형식으로 나타내기 위함이다. 그리고 더 나아가 카메라를 통해 실시간으로 확인 할

수 있도록 구현할 계획이다.

IIS 설치

[제어판]-[프로그램]-[Windows 기능 켜기/끄기]-[인터넷정보 서비스]체크-[확인]

IIS관리자를 실행하고 사이트를 추가한다.

사이트 이름과 실제 경로를 설정해준다.

찾아보기를 클릭하거나 웹 주소창에 [Localhost:(포트번호)]를 치면 사이트가 뜬다.

500.19는 아주 자주 발생하는 에러중에 하나다. 이외에도 401, 404.3, 404.7, 404.8 등등 많은 에러가 났었다.

해결을 위해 [(site)홈]-[인증]-[편집]-[응용 프로그램 풀 ID]로 설정해준다.

또한 실제 경로 폴더의 속성을 켜고 보안탭에 들어가 사용자의 모든 권한을 허용해놓는다.

그리고 다시 웹사이트에 들어가보면

실행됨을 확인할 수 있다.

ASP.NET에서 만든 사이트를 IIS 관리자로 실행시키려면 게시를 해야한다. Visual studio의 IIS EXPRESS를 통해 바로 사이트를 실행할 수도 있지만 매번 동적으로 IP를 할당하고 백그라운드 실행이 안되기 때문에 개발중에 테스트 차원에서 돌려보는 용도로 쓰기에 적합하다고 본다. 다음은 IIS와 IIS Express의 차이점에 관한 설명이다.

Integrated with OS IIS 7 ships with the operating system and is tightly integrated to Windows. IIS developer express is a separate downloadable tool

Targetted users IIS 7 is for both developers as well as for production purposes. IIS developer express can be used only for development purposes and not for production.

Supported Windows editions IIS 7 will work only on Windows Vista and newer editions of Windows. In case of server OS, IIS 7 will work only on Windows 2008. IIS developer edition will work even on older version - starting from Windows XP and newer.

Process model and activation In IIS 7, the worker thread is automatically launched and managed by Windows Process Activation Service. In case of IIS Express, user has to handle this.

FTP support IIS developer express does not support FTP while IIS 7 supports it.

WCF support IIS Developer express supports only WCF over HTTP. IIS 7 supports WCF including over TCP, Named Pipes, and MSMQ.

Multi developer support IIS 7 is a single user application. IIS Developer express supports multi developer environment. Configuration files, settings, and Web content are maintained on a per-user basis.

Visual Studio integration All editions and versions of Visual Studio have built-in support for IIS 7. Only VS 2010 and future versions will have built-in support for IIS developer express.

Runtime extensions IIS developer has support for URL Rewrite and FastCGI. Webmatrix offers support for SEO, database management and Web Deployment. Other extensions that are offered with IIS are not yet tested with IIS Developer express.

Management Tools IIS 7 is managed using the IIS Manager. IIS Developer express can be managed using Webmatrix. Also, the express edition has support through system tray.

Port used by IIS The default website comes with IIS 7 listens to port 80. The default website part of IIS developer express listens to port 8080 to avoid conflicts with IIS 7 when they are running side by side.

ASP.NET 게시하기

이런식으로 로컬폴더에 게시하고 IIS의 웹사이트에 그 로컬폴더를 실제경로로 설정하는 방법

IIS,FTP 등에 직접 게시할 수도 있다.

from http://ghchoi0427.tistory.com/33 by ccl(A) rewrite - 2020-03-14 08:54:29

댓글

이 블로그의 인기 게시물

HTML 13단계 - 폼(Form) 1탄

[C#]Log4Net 사용법

임시 인터넷 파일캐싱을 위한 방지 html,css,javascript