sudo nginx -t
nginx 파일 설정 후에 설정이 잘 되었는지 체크해보기 위한 명령어이다. 오류 없이 잘 되었다면 아래와 같이 뜬다.
sudo service nginx restart
파일을 설정한 후 nginx를 restart해줘야 설정값이 적용된다.
'웹' 카테고리의 다른 글
[OpenAPI] 알라딘 OpenAPI 중 검색API 이용 (0) | 2023.09.19 |
---|---|
[js] 특정 문자열 위치 여러개 찾기(indexOf 활용) (0) | 2023.09.05 |
[nodejs/error][mongodb] TypeError: Converting circular structure to JSON, mongodb aggregate (0) | 2023.08.29 |
[nginx / 에러] Failed to start A high performance web server and a reverse proxy server. (0) | 2023.05.22 |
[mysql] mysql 워크벤치 강제종료 (0) | 2023.05.18 |
댓글