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].***.***
2. Enter the password
3. The connection is successful
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
2. Successful connection
3. Upload file
Drag from left to right
installation
cd
ls
sh Anaconda3-5.1.0-Linux-x86_64.sh
回车
直到下图
输入
yes
After pressing enter, an error will be reported.
Install bzip2
yum install -y bzip2
After the installation is complete, enter again
sh Anaconda3-5.1.0-Linux-x86_64.sh
Error again
rm -rf anaconda3/
re-enter
sh Anaconda3-5.1.0-Linux-x86_64.sh
#Remember to enter
yes
no
Restart server
reboot
Enter the conda command to display the following picture, that is, the installation is successful
conda
Successful installation!
When installing Anaconda on Linux, environment variable configuration
2. Create a Django project
django-admin startproject Ai_Web
cd Ai_Web/
ls
3. Test run
python manage.py runserver 0.0.0.0:8000
Enter the address in the browser
http://115.29.205.215:8000/
Display an error page, indicating initial success, otherwise it will be 404