728x90
문제
gunicorn 설치를 하고 설정을 위해 gunicorn.service 파일을 만들어 작성하고 저장하려할 때 다음과 같은 에러를 마주하였다.
해당 에러는 권한 문제로 root 계정이 아니기 때문이다.
해결
해결은 sudo를 붙여주면 된다.
sudo vi /ete/systemd/system/gunicorn.service
이미 파일을 생성해서 코드를 다 작성하고 저장하려니 아래 에러가 뜨는 상황에서는
다음 명령어로 저장해주면 된다.
:w !sudo tee % > /dev/null
'놀이터' 카테고리의 다른 글
413 client intended to send too large body (0) | 2023.05.22 |
---|---|
ubuntu mysqlclient 설치 error: subprocess-exited-with-error, python setup.py egg_info did not run successfully. (0) | 2023.05.22 |
upstream prematurely closed connection while reading response header from upstream (0) | 2023.05.22 |
CORS error (0) | 2023.05.22 |
nginx 502 Bad Gateway (0) | 2023.05.22 |