Disu: mudanças entre as edições
De MochilaWiki
Ir para navegaçãoIr para pesquisar
Criou página com 'Disu significado olho em Kimbundo == testes em ubuntu 14.04 == === instalando pyicecastlogreader === dependencias via apt <source lang="bash"> apt-get install libyaml-dev b...' |
Sem resumo de edição |
||
| Linha 15: | Linha 15: | ||
</source> | </source> | ||
== instalando postgresql === | +== instalando postgresql === | ||
<source lang="bash"> | <source lang="bash"> | ||
# apt-get install postgresql | # apt-get install postgresql | ||
</source> | </source> | ||
=== colocando senha no usuario postgresql === | |||
<source lang="bash"> | <source lang="bash"> | ||
# su - postgres | # su - postgres | ||
| Linha 27: | Linha 27: | ||
</source> | </source> | ||
=== ajustando permisses externas no postgresql === | |||
<source lang="bash"> | <source lang="bash"> | ||
echo "listen_addresses = '*'" >> /etc/postgresql/9.1/main/postgresql.conf | echo "listen_addresses = '*'" >> /etc/postgresql/9.1/main/postgresql.conf | ||
| Linha 34: | Linha 34: | ||
</source> | </source> | ||
=== restaurando a base log e d_date pro pyicecastlogreader === | |||
<source lang="bash"> | <source lang="bash"> | ||
createdb -h localhost -p 5432 -U postgres log | createdb -h localhost -p 5432 -U postgres log | ||
psql --host localhost --port 5432 --username "postgres" --password --dbname "log" -f log.sql | psql --host localhost --port 5432 --username "postgres" --password --dbname "log" -f /tmp/log.sql | ||
pg_restore --host localhost --port 5432 --username "postgres" --password --dbname "log" --verbose "/tmp/d_date" | pg_restore --host localhost --port 5432 --username "postgres" --password --dbname "log" --verbose "/tmp/d_date" | ||
</source> | </source> | ||
| Linha 46: | Linha 46: | ||
</source> | </source> | ||
=== instalando dependencias pro painel === | |||
<source lang="bash"> | <source lang="bash"> | ||
apt-get install php5-pgsql apache2 libapache2-mod-php5 | apt-get install php5-pgsql apache2 libapache2-mod-php5 | ||
Edição das 23h14min de 26 de maio de 2014
Disu significado olho em Kimbundo
testes em ubuntu 14.04
instalando pyicecastlogreader
dependencias via apt
apt-get install libyaml-dev build-essential python-sqlalchemy python-psycopg2 python-pip subversion python-dev python-yaml
dependencias via pip
pip install ua-parser user-agents apachelog
+== instalando postgresql ===
# apt-get install postgresql
colocando senha no usuario postgresql
# su - postgres
$ psql postgres
postgres=# alter user postgres with encrypted password '123456';
ajustando permisses externas no postgresql
echo "listen_addresses = '*'" >> /etc/postgresql/9.1/main/postgresql.conf
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.1/main/pg_hba.conf
/etc/init.d/postgresql restart
restaurando a base log e d_date pro pyicecastlogreader
createdb -h localhost -p 5432 -U postgres log
psql --host localhost --port 5432 --username "postgres" --password --dbname "log" -f /tmp/log.sql
pg_restore --host localhost --port 5432 --username "postgres" --password --dbname "log" --verbose "/tmp/d_date"
rodando pyicecastlogreader
python pyicecastlogreader.py --arquivo /var/log/icecast/access.log
instalando dependencias pro painel
apt-get install php5-pgsql apache2 libapache2-mod-php5