gitbook

NGINX

블로그에 저장한 내용을 참고하여 정리했습니다. Nginx

nginx 실행하기

앞에서 설치된 내용을 실행 및 확인하는 방법은 다음과 같습니다.

[root@localhost ~]$ nginx -v
nginx version: nginx/1.17.6

[root@localhost ~]$ systemctl enable nginx
[root@localhost ~]$ systemctl start nginx
[root@localhost ~]$ systemctl status nginx
 nginx.service - nginx - high performance web server
  Process: 30220 ExecStart=/usr/sbin/nginx 
  CGroup: /system.slice/nginx.service
          └─30222 nginx: worker process

[root@localhost ~]$ netstat -ntlp | grep :80
tcp   0   0 0.0.0.0:80   0.0.0.0:*   LISTEN  30221/nginx: master 

[root@localhost ~]$ curl -i http://localhost
<!Document>
<head><link>...

Django & Gunicorn 연결

File “/usr/local/lib/python3.7/sqlite3/dbapi2.py”, line 27, in from _sqlite3 import * ModuleNotFoundError: No module named '_sqlite3'