Commit 63a3d289b6449d1a0bd0a03f9c58b63bdb37271d

Authored by Paulo Meireles
1 parent a8386f13

atualizacao inicial do install do Redmine

installDoc/redmine-sei.tex
1 -\section{Redmine}\label{redmine} 1 +\section{Redmine}
  2 +\label{redmine}
2 3
3 \subsection{Instalação do Epel} 4 \subsection{Instalação do Epel}
4 -\fbox{  
5 -\texttt{rpm -Uvh http://fedora.uib.no/epel/6/x86\_64/epel-release-6-8.noarch.rpm}  
6 -} 5 +
  6 +\fbox{\parbox{\textwidth}{
  7 +\texttt{
  8 +rpm -Uvh http://fedora.uib.no/epel/6/x86\_64/epel-release-6-8.noarch.rpm
  9 +}}}
7 10
8 \subsection{Instalação de pacotes} 11 \subsection{Instalação de pacotes}
9 \fbox{\parbox{\textwidth}{ 12 \fbox{\parbox{\textwidth}{
10 -\texttt{sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel subversion git postgresql-devel} 13 +\texttt{sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel subversion git postgresql-devel wget vim}
11 }} 14 }}
12 15
13 \subsection{Instalação Postgresql} 16 \subsection{Instalação Postgresql}
14 17
15 \fbox{\parbox{\textwidth}{ 18 \fbox{\parbox{\textwidth}{
16 -\texttt{sudo yum localinstall  
17 -http://yum.postgresql.org/9.3/redhat/rhel-6-x86\_64/  
18 -pgdg-centos93-9.3-1.noarch.rpm  
19 --y sudo yum install postgresql93 postgresql93-devel postgresql93-libs  
20 -postgresql93-server -y  
21 -}}} 19 +\texttt{
  20 +\footnotesize{sudo yum localinstall http://yum.postgresql.org/9.3/redhat/rhel-6-x86\_64/pgdg-centos93-9.3-1.noarch.rpm -y
  21 +\\
  22 +sudo yum install postgresql93 postgresql93-devel postgresql93-libs postgresql93-server -y
  23 +}}}}
22 24
23 \subsubsection{Reiniciar Postgresql} 25 \subsubsection{Reiniciar Postgresql}
24 26
25 \fbox{\parbox{\textwidth}{ 27 \fbox{\parbox{\textwidth}{
26 -\texttt{/etc/init.d/postgresql-9.3 initdb sudo /etc/init.d/postgresql-9.3 restart 28 +\texttt{
  29 +sudo /etc/init.d/postgresql-9.3 initdb
  30 +\\
  31 +sudo /etc/init.d/postgresql-9.3 restart
27 }}} 32 }}}
28 33
29 \subsubsection{Modificar senha do Postgres} 34 \subsubsection{Modificar senha do Postgres}
30 35
31 \fbox{\parbox{\textwidth}{ 36 \fbox{\parbox{\textwidth}{
32 -\texttt{sudo -u postgres psql template1 \textgreater{}\textgreater{}ALTER USER  
33 -postgres with encrypted password `postgres'; 37 +\texttt{sudo -u postgres psql template1 -c ``ALTER USER
  38 +postgres with encrypted password `postgres' '';
34 }}} 39 }}}
35 40
36 \subsubsection{Configurando o Postgres} 41 \subsubsection{Configurando o Postgres}
37 42
38 \fbox{ 43 \fbox{
39 -\texttt{sudo vi /var/lib/pgsql/9.3/data/postgresql.conf}} 44 +\texttt{sudo vim /var/lib/pgsql/9.3/data/postgresql.conf}}
40 45
41 \fbox{ 46 \fbox{
42 -\texttt{change: listen\_addresses = 'localhost'}  
43 -\texttt{to: listen\_addresses = 'localhost'}} 47 +\texttt{descomentar: # listen\_addresses = `localhost'}
44 48
45 \fbox{\parbox{\textwidth}{ 49 \fbox{\parbox{\textwidth}{
46 \texttt{[ESC]:wq! 50 \texttt{[ESC]:wq!
47 -Edit pg\_hba.conf to grant the permissions}}} 51 +}}}
  52 +
  53 +Editar pg\_hba.conf para definir as permissões
48 54
49 \fbox{ 55 \fbox{
50 -\texttt{sudo vi /var/lib/pgsql/9.3/data/pg\_hba.conf}} 56 +\texttt{sudo vim /var/lib/pgsql/9.3/data/pg\_hba.conf}}
51 57
52 \subsubsection{Usar a permissão certa de usuário do Redmine no banco de dados do Redmine} 58 \subsubsection{Usar a permissão certa de usuário do Redmine no banco de dados do Redmine}
53 59
54 \fbox{\parbox{\textwidth}{ 60 \fbox{\parbox{\textwidth}{
55 \texttt{ 61 \texttt{
56 \# TYPE DATABASE USER ADDRESS METHOD 62 \# TYPE DATABASE USER ADDRESS METHOD
  63 +\\
57 \# local is for Unix domain socket connections only 64 \# local is for Unix domain socket connections only
  65 +\\
58 local all redmine md5 66 local all redmine md5
  67 +\\
59 \# IPv4 local connections: 68 \# IPv4 local connections:
  69 +\\
60 host all redmine 127.0.0.1/32 md5 70 host all redmine 127.0.0.1/32 md5
  71 +\\
61 \# IPv6 local connections: 72 \# IPv6 local connections:
  73 +\\
62 host all redmine ::1/128 md5 74 host all redmine ::1/128 md5
63 }}} 75 }}}
64 76
installDoc/redmine-sei.txt
@@ -12,7 +12,7 @@ Install Requirements @@ -12,7 +12,7 @@ Install Requirements
12 .. code-block:: 12 .. code-block::
13 13
14 sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel 14 sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel
15 - subversion git postgresql-devel 15 + subversion git postgresql-devel wget
16 16
17 17
18 Install Postgresql 18 Install Postgresql
@@ -27,15 +27,14 @@ Restarting Postgresql @@ -27,15 +27,14 @@ Restarting Postgresql
27 27
28 .. code-block:: 28 .. code-block::
29 29
30 - /etc/init.d/postgresql-9.3 initdb 30 + sudo /etc/init.d/postgresql-9.3 initdb
31 sudo /etc/init.d/postgresql-9.3 restart 31 sudo /etc/init.d/postgresql-9.3 restart
32 32
33 Change Postgres password 33 Change Postgres password
34 34
35 .. code-block:: 35 .. code-block::
36 36
37 - sudo -u postgres psql template1  
38 - >>ALTER USER postgres with encrypted password 'postgres'; 37 + sudo -u postgres psql template1 -c "ALTER USER postgres with encrypted password 'postgres'";
39 38
40 Configuring 39 Configuring
41 40
@@ -43,11 +42,8 @@ Configuring @@ -43,11 +42,8 @@ Configuring
43 42
44 sudo vi /var/lib/pgsql/9.3/data/postgresql.conf 43 sudo vi /var/lib/pgsql/9.3/data/postgresql.conf
45 44
46 - change: 45 + uncomment:
47 # listen_addresses = 'localhost' 46 # listen_addresses = 'localhost'
48 - to:  
49 - listen_addresses = 'localhost'  
50 -  
51 47
52 .. code-block:: 48 .. code-block::
53 49