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
#Install wget | |
yum install wget | |
#Find the version that you need on lucene site and get it | |
wget http://ftp.unicamp.br/pub/apache/lucene/solr/6.2.0/solr-6.2.0.tgz | |
#Untar | |
tar xzf solr-6.2.0.tgz solr-6.2.0/bin/install_solr_service.sh --strip-components=2 | |
#execute the install (can be used for updates as well) | |
chmod +x install_solr_service.sh | |
./install_solr_service.sh solr-6.2.0.tgz -f |
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
"""Obs.: No comeco do EP, ele diz que a intencao eh voce aprender a usar numeros inteiros. Problema: | |
O tipo int em Python, por motivos que nao vou me extender, usa a quantidade de bits disponiveis no | |
processador, portanto, se voce rodar esse EP em um computador de 32 bits, o exemplo 3 do EP ira dar | |
errado, por causa de Overflow na quantidade de bits. Entretanto, em uma arquitetura 64 bits, voce | |
nao deve ter nenhum problema. Mas vamos falar a verdade, esses caras do IME ou sao muito sadicos por | |
nao alertar voces bixos, ou muito burros mesmo. Quem quiser ler os motivos de o Python unificar o | |
tipo int e long veja nesse link: | |
http://www.devx.com/opensource/Article/41398 | |
""" |