Ubuntu下搭建python開發環境

2021-08-10 01:47:13 字數 864 閱讀 7670

ubuntu下搭建

python

開發環境

首先輸入

sudo passwd 輸入root相關密碼,輸入su,進入超級管理員

sudo apt-get install python

sudo apt-get install python-dev(編譯外部模組檔案使用的)

sudo apt-get install python-pip

sudo apt-get install libxml*

sudo apt-get install net-tools

sudo apt-get install lsof

2.安裝 資料庫---------

apt-get install mysql-server

apt-get install mysql-client

apt-get install libmysqlclient-dev

資料庫安裝完成後,測試資料庫連線,遠端鏈結及本地連線,如果連線成功則繼續向下

3.更新pip版本---------

pip install --upgrade pip

4.安裝ssh---------

sudo apt-get install openssh-server

5.安裝 nginx---------

sudo apt-get install nginx

6.安裝 uwsgi---------

sudo pip install uwsgi

將django專案通過filezill上傳到ubuntu下/home/project目錄下,安裝專案執行所需第三方包,資料庫資料遷移,進入專案目錄,執行專案,訪問檢視是否有問題

Ubuntu下python環境搭建

一般ubuntu系統會自帶安裝python2.x 和python3.x兩個版本。我使用的ubuntu16.04自帶python2.7和python3.5.我們只需要安裝pip以及virtualenv 管理python環境,多專案部署時python環境隔離,避免相互影響 安裝python2的pip執行...

ubuntu下搭建tftp服務

tftp安裝與建立 1.安裝xinetd sudo apt get install xinetd xinetd是乙個系統守護程式,它取代inetd用於控制tcp,udp的連線。2.安裝tftp,tftpd sudo apt get install tftp hpa tftpd hpa linux下的...

ubuntu下memchached搭建與使用

memcached是一種高效能的分布式記憶體快取伺服器。一般的使用目的是通過快取資料查詢結果,減少資料庫訪問次數,以提高動態weib應用的速度 提高可擴增性。memcached有以下特點 協議簡單 基於libevent的事件處理 內建記憶體儲存方式 memcached不互相通訊的分布式 libeve...