From 63a3d289b6449d1a0bd0a03f9c58b63bdb37271d Mon Sep 17 00:00:00 2001 From: Paulo Meirelles Date: Thu, 3 Jul 2014 08:54:22 -0300 Subject: [PATCH] atualizacao inicial do install do Redmine --- installDoc/redmine-sei.tex | 50 +++++++++++++++++++++++++++++++------------------- installDoc/redmine-sei.txt | 12 ++++-------- 2 files changed, 35 insertions(+), 27 deletions(-) diff --git a/installDoc/redmine-sei.tex b/installDoc/redmine-sei.tex index 3e6376a..ce33a81 100644 --- a/installDoc/redmine-sei.tex +++ b/installDoc/redmine-sei.tex @@ -1,64 +1,76 @@ -\section{Redmine}\label{redmine} +\section{Redmine} +\label{redmine} \subsection{Instalação do Epel} -\fbox{ -\texttt{rpm -Uvh http://fedora.uib.no/epel/6/x86\_64/epel-release-6-8.noarch.rpm} -} + +\fbox{\parbox{\textwidth}{ +\texttt{ +rpm -Uvh http://fedora.uib.no/epel/6/x86\_64/epel-release-6-8.noarch.rpm +}}} \subsection{Instalação de pacotes} \fbox{\parbox{\textwidth}{ -\texttt{sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel subversion git postgresql-devel} +\texttt{sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel subversion git postgresql-devel wget vim} }} \subsection{Instalação Postgresql} \fbox{\parbox{\textwidth}{ -\texttt{sudo yum localinstall -http://yum.postgresql.org/9.3/redhat/rhel-6-x86\_64/ -pgdg-centos93-9.3-1.noarch.rpm --y sudo yum install postgresql93 postgresql93-devel postgresql93-libs -postgresql93-server -y -}}} +\texttt{ +\footnotesize{sudo yum localinstall http://yum.postgresql.org/9.3/redhat/rhel-6-x86\_64/pgdg-centos93-9.3-1.noarch.rpm -y +\\ +sudo yum install postgresql93 postgresql93-devel postgresql93-libs postgresql93-server -y +}}}} \subsubsection{Reiniciar Postgresql} \fbox{\parbox{\textwidth}{ -\texttt{/etc/init.d/postgresql-9.3 initdb sudo /etc/init.d/postgresql-9.3 restart +\texttt{ +sudo /etc/init.d/postgresql-9.3 initdb +\\ +sudo /etc/init.d/postgresql-9.3 restart }}} \subsubsection{Modificar senha do Postgres} \fbox{\parbox{\textwidth}{ -\texttt{sudo -u postgres psql template1 \textgreater{}\textgreater{}ALTER USER -postgres with encrypted password `postgres'; +\texttt{sudo -u postgres psql template1 -c ``ALTER USER +postgres with encrypted password `postgres' ''; }}} \subsubsection{Configurando o Postgres} \fbox{ -\texttt{sudo vi /var/lib/pgsql/9.3/data/postgresql.conf}} +\texttt{sudo vim /var/lib/pgsql/9.3/data/postgresql.conf}} \fbox{ -\texttt{change: listen\_addresses = 'localhost'} -\texttt{to: listen\_addresses = 'localhost'}} +\texttt{descomentar: # listen\_addresses = `localhost'} \fbox{\parbox{\textwidth}{ \texttt{[ESC]:wq! -Edit pg\_hba.conf to grant the permissions}}} +}}} + +Editar pg\_hba.conf para definir as permissões \fbox{ -\texttt{sudo vi /var/lib/pgsql/9.3/data/pg\_hba.conf}} +\texttt{sudo vim /var/lib/pgsql/9.3/data/pg\_hba.conf}} \subsubsection{Usar a permissão certa de usuário do Redmine no banco de dados do Redmine} \fbox{\parbox{\textwidth}{ \texttt{ \# TYPE DATABASE USER ADDRESS METHOD +\\ \# local is for Unix domain socket connections only +\\ local all redmine md5 +\\ \# IPv4 local connections: +\\ host all redmine 127.0.0.1/32 md5 +\\ \# IPv6 local connections: +\\ host all redmine ::1/128 md5 }}} diff --git a/installDoc/redmine-sei.txt b/installDoc/redmine-sei.txt index cb50c6a..a4489d5 100644 --- a/installDoc/redmine-sei.txt +++ b/installDoc/redmine-sei.txt @@ -12,7 +12,7 @@ Install Requirements .. code-block:: sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel - subversion git postgresql-devel + subversion git postgresql-devel wget Install Postgresql @@ -27,15 +27,14 @@ Restarting Postgresql .. code-block:: - /etc/init.d/postgresql-9.3 initdb + sudo /etc/init.d/postgresql-9.3 initdb sudo /etc/init.d/postgresql-9.3 restart Change Postgres password .. code-block:: - sudo -u postgres psql template1 - >>ALTER USER postgres with encrypted password 'postgres'; + sudo -u postgres psql template1 -c "ALTER USER postgres with encrypted password 'postgres'"; Configuring @@ -43,11 +42,8 @@ Configuring sudo vi /var/lib/pgsql/9.3/data/postgresql.conf - change: + uncomment: # listen_addresses = 'localhost' - to: - listen_addresses = 'localhost' - .. code-block:: -- libgit2 0.21.2