Django rest framework + vue js - подготавливаем сервер к deploy проекта - урок 15

Поддержать канал - Настройка пользователя. Установка и настройка python3.6, postgresql-10, nginx. Компиляции python 3.6 # sudo apt-get install -y make build-essential libssl-dev zlib1g-dev # sudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm # sudo apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev # wget # tar xvf # cd # ./configure --enable-optimizations # make -j8 # sudo make altinstall # python3.6 Создание базы данных # sudo -u postgres psql # CREATE DATABASE myproject; # CREATE USER user WITH PASSWORD ’password’; # ALTER ROLE user SET client_encoding TO ’utf8’; # ALTER ROLE user SET default_transaction_isolation TO ’read committed’; # ALTER ROLE user SET timezone TO ’UTC’; # GRANT ALL PRIVILEGES ON DATABASE chatdb TO user; #�
Back to Top