
루트에서 1. systemctl enable postgresql-11 systemctl start postgresql-11 기동시키고... 2. 계정생성 su - postgres 사용자전환후 psql 입력 2.1 create database django_test 2.2 create user test_user with password 'test_user'; 2.3 ALTER ROLE test_user SET client_encoding TO 'utf8'; 2.4 ALTER ROLE test_user SET default_transaction_isolation TO 'read committed'; 2.5 ALTER ROLE test_user SET TIME ZONE 'Asia/Seoul'; 2.6 GRANT..
컴퓨타/연습공부
2022. 2. 12. 17:07

centos7 python3 django 에서 프로젝트 생성후 python3 manage.py migrate 이용하여 명령어 날리면 에러남.. pip3 install psycopg2로 설치하면 또 에러남. 그래서 yum groupinstall "Development Tools" yum install python3-devel yum install postgresql-libs yum install postgresql-devel pip3 install psycopg2 했더니 설치됨.
컴퓨타/연습공부
2022. 2. 12. 14:02
최근에 올라온 글
반응형