linux 搭建開發環境過程記錄

VMware Workstation Linux Mint 16  32bit python


1. 安裝VMware Tools mysql

安裝完畢,註銷系統 linux


2. 更換軟件源 redis

Menu -> 控制中心 -> System -> 軟件源 sql

sudo apt-get update mongodb

註銷系統 數據庫


3. 安裝中文語言包 vim

Menu -> 控制中心 -> Personal -> Language Support app


3. 安裝搜狗中文拼音輸入法 frontend

sudo add-apt-repository ppa:fcitx-team/nightly

sudo apt-get update

sudo apt-get install fcitx fcitx-sogoupinyin fcitx-table-wubi fcitx-frontend-gtk3 fcitx-ui-classic

註銷系統


4. 安裝pycharm編輯器


cd ~

mkdir download

cd download

wget http://download-cf.jetbrains.com/python/pycharm-professional-3.1.2.tar.gz

tar xzf pycharm-professional-3.1.2.tar.gz

sudo mv pycharm-3.1.2/ /usr/local/pycharm

在桌面 建立啓動器


User Name: dev

License Key:

===== LICENSE BEGIN =====

06054-12042010

00001Nq6wMY0fDcjJWQXP9AZrIJTol

9d1uC2EYUc41gRJKgEzelI68t3fY6L

U6QZqPjMpMgNPC6pMUroOOc09WlDlL

===== LICENSE END =====



5. 安裝python開發環境 pip virtualenvwrapper supervisor

sudo apt-get install python-dev python-pip

sudo apt-get install supervisor

sudo pip install virtualenvwrapper



6. 安裝mongodb


cd ~/download

wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.6.0.tgz

tar xzf mongodb-linux-i686-2.6.0.tgz

sudo mv mongodb-linux-i686-2.6.0 /usr/local/mongodb

# 設置mongodb的數據庫位置

sudo mkdir -p /data/db


wget http://robomongo.org/files/linux/robomongo-0.8.4-i386.deb

sudo dpkg -i robomongo-0.8.4-i386.deb


# 啓動mongodb

sudo /usr/local/mongodb/bin/mongod



7. 安裝postgresql


sudo apt-get install vim

sudo vim /etc/apt/sources.list.d/pgdg.list 並添加如下:

deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \

> sudo apt-key add -

sudo apt-get update

sudo apt-get install postgresql-client-9.3

sudo apt-get install pgadmin3



8. 安裝redis

sudo apt-get install redis-server


9. 安裝mysql


sudo apt-get install mysql-server

mysql -u root -p

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'admin' WITH GRANT OPTION;

flush privileges;

vim /etc/mysql/my.cnf 註釋掉bind-address

sudo apt-get install build-essential libmysqlclient-dev

相關文章
相關標籤/搜索