OS
sudo apt-get install libffi-dev
PYENV
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
$ source ~/.bashrc
$ pyenv
$ pyenv install --list
$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
$ pyenv install 3.8.5
VirtualEnv
$ git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
$ pyenv virtualenv 3.8.5 py38
$ pyenv activate py38
$ source deactivate
$ pyenv uninstall py38
$ vi .bashrc
export PATH="$PYENV_ROOT/bin:$PYENV_ROOT/versions/py38/bin:$PATH"
$ pyenv activate py38
$ python -V
$ pyenv shell 3.8.5
$ pyenv global 3.8.5
Mysql 5.6
CREATE USER username@'%' IDENTIFIED BY 'password';
ALTER USER 'username'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
CREATE DATABASE db_name CHARACTER SET = 'utf8mb4' COLLATE = 'utf8mb4_general_ci';
GRANT ALL PRIVILEGES ON db_name.* TO username@'%';
flush privileges;
GRANT ALL PRIVILEGES ON . TO 'username'@'%' WITH GRANT OPTION;
SHOW GRANTS FOR 'username';
https://stackoverflow.com/questions/26015160/deterministic-no-sql-or-reads-sql-data-in-its-declaration-and-binary-logging-i
sudo mysql -u root gobeautypet < real_db_structure.sql
sudo mysql -u root gobeautypet < real_db_data_light.sql &
git clone 레포지토리
python django
sudo apt install python3-pip
pip3 install -r requirements.txt
sudo python3 manage.py runserver 0.0.0.0:80