Skip to content

Instantly share code, notes, and snippets.

@johnfelipe
Last active August 29, 2015 14:16
Show Gist options
  • Save johnfelipe/cbb2b693ca89ff09bf1e to your computer and use it in GitHub Desktop.
Save johnfelipe/cbb2b693ca89ff09bf1e to your computer and use it in GitHub Desktop.
sayitcentos.md

Ver que clase de centos es:

    uname -i

Chequear la version de java

    java -version

Instalar la version de java en CENTOS

    sudo yum install java-1.7.0-openjdk.x86_64

Instalamos Elasticsearch

    $ curl -L -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.0.noarch.rpm

Cambiamos por winscp a elasticsearch-1.4.0.rpm

    $ sudo rpm -i elasticsearch-1.4.0.rpm
    $ sudo service elasticsearch start

Instalamos python via fuentes

    sudo yum install gcc zlib-devel python-setuptools readline-devel
    wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
    tar -xzvf Python-2.7.2.tgz
    cd Python-2.7.2
    ./configure
    sudo make altinstall

Intentar con esta pagina

    https://gist.github.com/hangtwenty/5546945

Instalamos postgre 9.4 desde los fuentes

    wget http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm
    sudo rpm -Uvh http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm
    sudo yum update
    sudo yum install postgresql94-server postgresql94-contrib
    sudo service postgresql-9.4 initdb
    sudo service postgresql-9.4 start

Ajustamos IP TABLES

    vi /etc/sysconfig/iptables

Add the following line:

    -A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

Save and exit the file. Restart iptables service.

    service iptables restart
    chkconfig postgresql-9.4 on

Para crypto

    sudo yum install gcc libffi-devel python-devel openssl-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment