Last active
August 29, 2015 14:19
-
-
Save Ivlyth/17d4dd7552306269f9d5 to your computer and use it in GitHub Desktop.
work env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# InstallingCompilers see https://help.ubuntu.com/community/InstallingCompilers | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential | |
gcc -v | |
make -v | |
# git | |
sudo apt-get install git | |
# pip | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
# curl | |
sudo apt-get install curl | |
# mysql | |
sudo apt-get install mysql-server | |
# mysqldb for python | |
sudo apt-get install python-mysqldb | |
# redis server | |
sudo apt-get install redis-server | |
# redis for python | |
sudo pip install redis | |
# sqlalchemy 0.9.6 for python | |
sudo pip install sqlalchemy==0.9.6 | |
# tornado3.2.2 for python | |
sudo pip install tornado | |
# ipython | |
sudo pip install ipython | |
# supervisord | |
sudo pip install supervisor | |
echo_supervisord_conf > /etc/supervisord.conf | |
# pcre for nginx rewrite module | |
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.tar.gz | |
tar -xf pcre-8.35.tar.gz | |
cd pcre-8.35 | |
./configure | |
make & make install | |
# openssl for nginx ssl module | |
wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz | |
tar -xf openssl-1.0.2-latest.tar.gz | |
cd openssl-1.0.2a/ | |
./config | |
make & make install | |
sudo apt-get install libssl-dev | |
# nginx | |
wget http://nginx.org/download/nginx-1.7.12.tar.gz -O nginx.tar.gz | |
wget https://github.com/openresty/headers-more-nginx-module/archive/v0.26.tar.gz -O more_set_headers.tar.gz | |
tar -xf nginx.tar.gz | |
tar -xf more_set_headers.tar.gz | |
mv headers-more-nginx-module-0.26 more_headers | |
cd nginx-1.7.12 | |
./configure --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --add-module=/home/myth/software/more_headers/ | |
make & make install | |
# start nginx | |
sudo /usr/local/nginx/sbin/nginx # make need - sudo ln -s /usr/local/lib/libpcre.so.1 /lib64/ | |
# mongodb | |
# see http://docs.mongodb.org/v2.6/tutorial/install-mongodb-on-ubuntu/ | |
# pymongo for python | |
sudo pip install pymongo==2.7 | |
# install concurrent.futures for python 2 | |
sudo pip install futures | |
# install jdk1.7 | |
wget http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz | |
#then see http://www.wikihow.com/Install-Oracle-Java-JDK-on-Ubuntu-Linux | |
# pycharm-professional-3.1.3 | |
wget http://download.jetbrains.com/python/pycharm-professional-3.1.3.tar.gz | |
#then see https://www.jetbrains.com/pycharm/download/installation_instructions.jsp?os=linux | |
# and http://blog.chinaunix.net/uid-21633169-id-4315166.html | |
# nodejs | |
wget http://nodejs.org/dist/v0.12.2/node-v0.12.2.tar.gz | |
tar -xf node-v0.12.2.tar.gz | |
cd node-v0.12.2 | |
./configure | |
make && sudo make install | |
# npm | |
sudo apt-get install npm | |
# cnpm | |
npm install -g cnpm --registry=https://registry.npm.taobao.org | |
# anywhere | |
npm install -g anywhere | |
# grunt | |
sudo npm install -g grunt-cli | |
# bower | |
npm -g install bower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment