Build a python development environment under Ubuntu
Ps: ubuntu comes with python2.7 environment, if you need to download and install, you can use the following command
First enter sudo passwd, enter the root related password, enter su, and enter the super administrator
Sudo apt-get install python
Sudo apt-get install python-dev (used to compile external module files)
Sudo apt-get install python-pip
sudo apt-get install libxml*
sudo apt-get install net-tools
sudo apt-get install lsof
apt-get install mysql-server
apt-get install mysql-client
apt-get install libmysqlclient-dev
After the database installation is complete, test the database connection, remote link and local connection, if the connection is successful, continue down
pip install --upgrade pip
sudo apt-get install openssh-server
sudo apt-get install nginx
sudo pip install uwsgi
Upload the django project through FileZill to the /home/project directory under ubuntu, install the third-party packages required for project operation, migrate database data, enter the project directory, run the project, and visit to see if there is a problem
Recommended Posts