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...' |
|||
| (3 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| Linha 7: | Linha 7: | ||
dependencias via apt | dependencias via apt | ||
<source lang="bash"> | <source lang="bash"> | ||
apt-get install libyaml-dev build-essential python-sqlalchemy python-psycopg2 python-pip | apt-get install libyaml-dev build-essential python-sqlalchemy python-psycopg2 python-pip python-dev python-yaml | ||
</source> | </source> | ||
| 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. | echo "listen_addresses = '*'" >> /etc/postgresql/9.3/main/postgresql.conf | ||
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9. | echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf | ||
/etc/init.d/postgresql restart | /etc/init.d/postgresql restart | ||
</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 atual tal como às 10h06min de 27 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 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.3/main/postgresql.conf
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/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