๋ํ๊ต ์ค์ฌ์ด ์๋ ํ๊ณผ ์ค์ฌ์ ์ ๋ณด ๊ณต์ ๋ฐ ๋คํธ์ํน ์ฐฝ๊ตฌ๋ฅผ ๋ง๋ค์ด ์ ์ฌ ํ๊ณผ ์ ๊ณต์๋ค ๊ฐ์ ๊ต๋ฅ๋ฅผ ํ์ฑํํ๋ ์น์๋น์ค์ ๋๋ค.
- OCR ๊ธฐ๋ฐ ์์ฒด ๊ฐ๋ฐ ํ์์ฆ ์ธ์ ๋ชจ๋ธ ํ์ฉ
- ํ๊ณผ ์ค์ฌ์ ์ปค๋ฎค๋ํฐ ๊ฒ์ํ, ์คํฐ๋ ๊ฒ์ํ
- ํ๊ณผ๊ฐ ์ค๊ณ ๊ฑฐ๋ ํ์ฑํ
- ์ทจ์ ์ ๋ณด ๊ณต์
- '์ฑ๋ด' ๊ธฐ๋ฐ ์ฌ๋ฆฌ ์๋ด ํ, ๋ง์ถคํ ๋ฉํ ๋ง ์ถ์ฒ
cd Desktop
chmod 400 ./[key-name].pem
ssh -i [key-name].pem ubuntu@[ip]
source majorin/bin/activate
cd MajorIn_BE/
gunicorn --bind 0.0.0.0:8000 majorinBE.wsgi:application
http://[ip]:80/
์ฌ์์
> sudo systemctl restart gunicorn
์ํ ํ์ธ
> systemctl status gunicorn
์๋น์ค ์ค์ง
> sudo systemctl stop gunicorn.service
pid ํ์ธ
> ps ax|grep gunicorn
์ข
๋ฃ
> kill -9 <pid>
์ฌ์์
> sudo systemctl restart nginx
์ํ ํ์ธ
> systemctl status nginx.service
์ข
๋ฃ
> sudo systemctl stop nginx
๋ก๊ทธ ํ์ธ
> sudo vi /var/log/nginx/error.log
mysql -u root -p
USE majorin
