Commit 63a3d289b6449d1a0bd0a03f9c58b63bdb37271d
1 parent
a8386f13
Exists in
master
and in
1 other branch
atualizacao inicial do install do Redmine
Showing
2 changed files
with
35 additions
and
27 deletions
Show diff stats
installDoc/redmine-sei.tex
1 | -\section{Redmine}\label{redmine} | |
1 | +\section{Redmine} | |
2 | +\label{redmine} | |
2 | 3 | |
3 | 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 | 11 | \subsection{Instalação de pacotes} |
9 | 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 | 16 | \subsection{Instalação Postgresql} |
14 | 17 | |
15 | 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 | 25 | \subsubsection{Reiniciar Postgresql} |
24 | 26 | |
25 | 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 | 34 | \subsubsection{Modificar senha do Postgres} |
30 | 35 | |
31 | 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 | 41 | \subsubsection{Configurando o Postgres} |
37 | 42 | |
38 | 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 | 46 | \fbox{ |
42 | -\texttt{change: listen\_addresses = 'localhost'} | |
43 | -\texttt{to: listen\_addresses = 'localhost'}} | |
47 | +\texttt{descomentar: # listen\_addresses = `localhost'} | |
44 | 48 | |
45 | 49 | \fbox{\parbox{\textwidth}{ |
46 | 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 | 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 | 58 | \subsubsection{Usar a permissão certa de usuário do Redmine no banco de dados do Redmine} |
53 | 59 | |
54 | 60 | \fbox{\parbox{\textwidth}{ |
55 | 61 | \texttt{ |
56 | 62 | \# TYPE DATABASE USER ADDRESS METHOD |
63 | +\\ | |
57 | 64 | \# local is for Unix domain socket connections only |
65 | +\\ | |
58 | 66 | local all redmine md5 |
67 | +\\ | |
59 | 68 | \# IPv4 local connections: |
69 | +\\ | |
60 | 70 | host all redmine 127.0.0.1/32 md5 |
71 | +\\ | |
61 | 72 | \# IPv6 local connections: |
73 | +\\ | |
62 | 74 | host all redmine ::1/128 md5 |
63 | 75 | }}} |
64 | 76 | ... | ... |
installDoc/redmine-sei.txt
... | ... | @@ -12,7 +12,7 @@ Install Requirements |
12 | 12 | .. code-block:: |
13 | 13 | |
14 | 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 | 18 | Install Postgresql |
... | ... | @@ -27,15 +27,14 @@ Restarting Postgresql |
27 | 27 | |
28 | 28 | .. code-block:: |
29 | 29 | |
30 | - /etc/init.d/postgresql-9.3 initdb | |
30 | + sudo /etc/init.d/postgresql-9.3 initdb | |
31 | 31 | sudo /etc/init.d/postgresql-9.3 restart |
32 | 32 | |
33 | 33 | Change Postgres password |
34 | 34 | |
35 | 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 | 39 | Configuring |
41 | 40 | |
... | ... | @@ -43,11 +42,8 @@ Configuring |
43 | 42 | |
44 | 43 | sudo vi /var/lib/pgsql/9.3/data/postgresql.conf |
45 | 44 | |
46 | - change: | |
45 | + uncomment: | |
47 | 46 | # listen_addresses = 'localhost' |
48 | - to: | |
49 | - listen_addresses = 'localhost' | |
50 | - | |
51 | 47 | |
52 | 48 | .. code-block:: |
53 | 49 | ... | ... |