CentOS 에서 Asp. Net Core 사 이 트 를 자동 으로 실행 합 니 다.
yum install nginx
설정
vi /etc/nginx/nginx.conf
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
3. Nginx 부팅 설정
systemctl enable nginx.service
4. 데 몬 설치 도구
yum install supervisor
5. 데 몬 설정 정보
cd /etc/supervisord.d
vi videoserver.ini
[program:VideoServer.Site]
command=dotnet VideoCheckServer.dll
directory=/usr/bin/videoserver
environment=ASPNETCORE__ENVIRONMENT=Production
user=root
stopsignal=INT
autostart=true
autorestart=true
startsecs=3
stderr_logfile=/var/log/videoserver.err.log
stdout_logfile=/var/log/videoserver.out.log
supervisord -c /etc/supervisord.conf
6. 부팅 데 몬 설정
systemctl enable supervisord.service
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
부트스트랩 ASP.NET에서 설정하는 법1) _Layout.cshtml 內 link로 bootstrap 참조 2) Nuget 패키지에서 BootStrap 다운로드 3) 하단 부트스트랩 예제 사이트 참고해서 프로젝트 개발 참고 :...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.