Created
December 14, 2012 06:57
-
-
Save alejandrobernardis/4283268 to your computer and use it in GitHub Desktop.
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
| TimeZone | |
| ======== | |
| $: cp /etc/localtime /etc/localtime.old | |
| $: cp -f /usr/share/zoneinfo/Mexico/General /etc/localtime | |
| ------------------------------------------------------------------------------- | |
| Base | |
| ==== | |
| $: mkdir -p ~/backups ~/downloads | |
| ------------------------------------------------------------------------------- | |
| Joe & Tree | |
| ========== | |
| $: yum install joe tree | |
| ------------------------------------------------------------------------------- | |
| Python 2.7 | |
| ========== | |
| Download | |
| -------- | |
| $: cd ~/downloads | |
| $: wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
| $: tar xvjf Python-2.7.3.tar.bz2 | |
| $: cd Python-2.7.3 | |
| Install | |
| ------- | |
| $: yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64 readline-devel gdbm-devel sqlite-devel ncurses-devel bzip2-devel | |
| $: ./configure | |
| $: make | |
| $: make install (or: make altinstall) | |
| ------------------------------------------------------------------------------- | |
| Setuptools | |
| ========== | |
| Download | |
| -------- | |
| $: cd ~/downloads | |
| $: wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e | |
| $: tar xfvz setuptools-0.6c11.tar.gz | |
| $: cd setuptools-0.6c11 | |
| Install | |
| ------- | |
| $: python setup.py install | |
| ------------------------------------------------------------------------------- | |
| Supervisor | |
| ========== | |
| $: easy_install supervisor | |
| ------------------------------------------------------------------------------- | |
| MongoDB | |
| ======= | |
| $: touch /etc/yum.repos.d/10gen.repo | |
| $: joe /etc/yum.repos.d/10gen.repo | |
| - paste - | |
| [10gen] | |
| name=10gen Repository | |
| baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
| gpgcheck=0 | |
| - paste - | |
| update | |
| ------ | |
| $: yum update | |
| install | |
| ------- | |
| $: yum install mongo-10gen.x86_64 mongo-10gen-server.x86_64 | |
| config | |
| ------ | |
| $: /etc/init.d/mongod stop | |
| $: cp /etc/mongod.conf /etc/mongod.conf.old | |
| $: joe /etc/mongod.conf | |
| - paste - | |
| # mongo.conf | |
| logpath=/var/log/mongo/mongod.log | |
| logappend=true | |
| fork=true | |
| dbpath=/var/lib/mongo | |
| auth=true | |
| bind_ip=127.0.0.1 | |
| rest=false | |
| nohttpinterface=true | |
| - paste - | |
| $: /etc/init.d/mongod start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment