Linux system deployment side-DRF preparation

Linux system deployment side-DRF preparation Linux system deployment side-DRF preparation L I n- U X -based system portion Department end - - D R & lt F. Quasi prepared

1. Enter the remote connection command

 ssh [email protected].***.***

Insert picture description here

2. Enter the password

Insert picture description here

3. The connection is successful

Insert picture description here

Install the Linux version of Anaconda

1. Upload the Linux version of Anaconda

  • Install the software for uploading files:WinSCP-5.15.9-Setup
  • Use WinSCP-5.15.9-Setup
    1. Remote connection
    Insert picture description here
    2. Successful connection
    Insert picture description here
    3. Upload file

Drag from left to right
Insert picture description here

Insert picture description here

installation

cd 
ls
sh Anaconda3-5.1.0-Linux-x86_64.sh 

Insert picture description here

回车
直到下图
输入
yes

Insert picture description here
Insert picture description here
After pressing enter, an error will be reported.
Insert picture description here
Insert picture description here
Install bzip2

 yum install -y bzip2

Insert picture description here
After the installation is complete, enter again

 sh Anaconda3-5.1.0-Linux-x86_64.sh

Insert picture description here
Error again
Insert picture description here
Insert picture description here

rm -rf anaconda3/

Insert picture description here
Insert picture description here

re-enter

 sh Anaconda3-5.1.0-Linux-x86_64.sh

#Remember to enter
Insert picture description here

yes

Insert picture description here
Insert picture description here

no

Insert picture description here
Insert picture description here
Restart server

reboot 

Enter the conda command to display the following picture, that is, the installation is successful
Insert picture description here

conda

Insert picture description here

Successful installation!

When installing Anaconda on Linux, environment variable configuration

2. Create a Django project

django-admin startproject Ai_Web

Insert picture description here

 cd Ai_Web/
 ls

Insert picture description here

3. Test run

python manage.py runserver 0.0.0.0:8000

Insert picture description here
Enter the address in the browser

http://115.29.205.215:8000/

Insert picture description here
Display an error page, indicating initial success, otherwise it will be 404
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41375318/article/details/115048621