Commit d55b98fbbd89c5350d8eb598df42d85690b6add0

Authored by Lucas Kanashiro
1 parent abd20eb0

Versão final

installDoc/redmine-sei.tex
... ... @@ -10,14 +10,17 @@ rpm -Uvh http://fedora.uib.no/epel/6/x86\_64/epel-release-6-8.noarch.rpm
10 10  
11 11 \subsection{Instalação de pacotes}
12 12 \fbox{\parbox{\textwidth}{
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}
  13 +\texttt{sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel \textbackslash
  14 +\\
  15 +apr-util-devel subversion git postgresql-devel wget vim}
14 16 }}
15 17  
16 18 \subsection{Instalação Postgresql}
17 19  
18 20 \fbox{\parbox{\textwidth}{
19 21 \texttt{
20   -\scriptsize{sudo yum localinstall http://yum.postgresql.org/9.3/redhat/rhel-6-x86\_64/pgdg-centos93-9.3-1.noarch.rpm -y
  22 +\scriptsize{
  23 +sudo yum localinstall http://yum.postgresql.org/9.3/redhat/rhel-6-x86\_64/pgdg-centos93-9.3-1.noarch.rpm -y
21 24 \\
22 25 sudo yum install postgresql93 postgresql93-devel postgresql93-libs postgresql93-server -y
23 26 }}}}
... ... @@ -33,9 +36,11 @@ sudo /etc/init.d/postgresql-9.3 restart
33 36  
34 37 \subsubsection{Modificar senha do Postgres}
35 38  
  39 +%Corrigindo aspas
36 40 \fbox{\parbox{\textwidth}{
37   -\texttt{sudo -u postgres psql template1 -c
38   -``ALTER USER postgres with encrypted password `postgres' '';
  41 +\texttt{sudo -u postgres psql template1 -c \textbackslash
  42 +\\
  43 +"ALTER USER postgres with encrypted password 'postgres';"
39 44 }}}
40 45  
41 46 \subsubsection{Configurando o Postgres}
... ... @@ -44,7 +49,7 @@ sudo /etc/init.d/postgresql-9.3 restart
44 49 \texttt{
45 50 sudo vim /var/lib/pgsql/9.3/data/postgresql.conf
46 51 \\
47   -descomentar: \# listen\_addresses = `localhost'
  52 +descomentar: \# listen\_addresses = 'localhost'
48 53 }}}
49 54  
50 55  
... ... @@ -55,6 +60,7 @@ descomentar: \# listen\_addresses = `localhost'
55 60  
56 61 O arquivo deve ficar desta forma:
57 62  
  63 +%Atualizando permissão dos usuários
58 64 \fbox{\parbox{\textwidth}{
59 65 \texttt{
60 66 \# TYPE DATABASE USER ADDRESS METHOD
... ... @@ -63,13 +69,19 @@ O arquivo deve ficar desta forma:
63 69 \\
64 70 local all redmine md5
65 71 \\
  72 +local all all peer
  73 +\\
66 74 \# IPv4 local connections:
67 75 \\
68   -host all redmine 127.0.0.1/32 md5
  76 +host all redmine 127.0.0.1/32 md5
  77 +\\
  78 +host all all 127.0.0.1/32 ident
69 79 \\
70 80 \# IPv6 local connections:
71 81 \\
72   -host all redmine ::1/128 md5
  82 +host all redmine ::1/128 md5
  83 +\\
  84 +host all all ::1/128 ident
73 85 }}}
74 86  
75 87 \subsubsection{Reiniciar Postgresql}
... ... @@ -81,8 +93,10 @@ host all redmine ::1/128 md5
81 93  
82 94 \fbox{\parbox{\textwidth}{
83 95 \texttt{
84   -sudo yum install gcc gcc-c++.x86\_64 make automake autoconf curl-devel
85   -openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel
  96 +sudo yum install gcc gcc-c++.x86\_64 make automake autoconf curl-devel \textbackslash
  97 +\\
  98 +openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel \textbackslash
  99 +\\
86 100 sqlite-devel ruby-rdoc ruby-devel rubygems libxslt-devel libxml2-devel.x86\_64 -y}}}
87 101  
88 102 \subsection{Atualizar para a Gem 1.4.2}
... ... @@ -140,17 +154,19 @@ bundle install --without mysql sqlite
140 154  
141 155 \fbox{\parbox{\textwidth}{
142 156 \texttt{
143   -sudo -u postgres psql
  157 +sudo -u postgres psql
144 158 }}}
145 159  
146 160 Execute:
147 161  
  162 +%Corrigindo
148 163 \fbox{\parbox{\textwidth}{
149 164 \texttt{
150   -``CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD `redmine' NOINHERIT VALID
151   -UNTIL `infinity'; CREATE DATABASE redmine WITH ENCODING=`UTF8'
152   -OWNER=redmine;''
153   -%\backslash q
  165 +CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'redmine' NOINHERIT VALID UNTIL 'infinity';
  166 +\\
  167 +CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine;
  168 +\\
  169 +\textbackslash q
154 170 }}}
155 171  
156 172  
... ... @@ -158,7 +174,7 @@ OWNER=redmine;''
158 174  
159 175 \fbox{\parbox{\textwidth}{
160 176 \texttt{
161   -sudo gem install pg -v `0.17.1' -\--no-ri -\--no-rdoc
  177 +sudo gem install pg -v '0.17.1' -\--no-ri -\--no-rdoc
162 178 \\
163 179 sudo gem install unicorn -\--no-ri -\--no-rdoc
164 180 }}}
... ... @@ -290,48 +306,3 @@ sudo /etc/init.d/postgresql-9.3 restart
290 306 O padrão do Redmine é a porta 3000.})
291 307 }}}
292 308  
293   -\subsection{Instalar Plugin Backlogs}
294   -
295   -De acordo com \url{http://www.redminebacklogs.net/en/installation.html}, execute os seguintes comandos:
296   -
297   -\fbox{\parbox{\textwidth}{
298   -\texttt{
299   -cd /opt/redmine
300   -}}}
301   -
302   -\fbox{\parbox{\textwidth}{
303   -\texttt{
304   -bundle install --without development test
305   -}}}
306   -
307   -\fbox{\parbox{\textwidth}{
308   -\texttt{
309   -gem install holidays --version 1.0.3\\
310   -gem install holidays
311   -}}}
312   -
313   -\fbox{\parbox{\textwidth}{
314   -\texttt{
315   -cd /opt/redmine/plugins\\
316   -git clone https://github.com/backlogs/redmine\_backlogs.git\\
317   -cd redmine\_backlogs\\
318   -git tag\\
319   -git checkout v1.0.6
320   -}}}
321   -
322   -\fbox{\parbox{\textwidth}{
323   -\texttt{
324   -cd /opt/redmine\\
325   -RAILS\_ENV=production\\
326   -export RAILS\_ENV\\
327   -bundle exec rake db:migrate\\
328   -bundle exec rake tmp:cache:clear\\
329   -bundle exec rake tmp:sessions:clear\\
330   -bundle exec rake redmine:backlogs:install (escolher sempre a opção 2)
331   -}}}
332   -
333   -\fbox{\parbox{\textwidth}{
334   -\texttt{
335   -service httpd restart
336   -}}}
337   -
... ...
installDoc/redmine-sei.txt
... ... @@ -86,10 +86,9 @@ Install Gems Requirements
86 86  
87 87 .. code-block::
88 88  
89   - sudo yum install gcc gcc-c++.x86_64 make automake autoconf curl-devel openssl-devel
90   - zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel ruby-rdoc ruby-devel
91   -
92   - sudo yum install rubygems libxslt-devel libxml2-devel.x86_64
  89 + sudo yum -y install gcc gcc-c++.x86_64 make automake autoconf curl-devel openssl-devel
  90 + zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel ruby-rdoc ruby-devel
  91 + rubygems libxslt-devel libxml2-devel.x86_64
93 92  
94 93  
95 94 Upgrading to Gem 1.4.2
... ... @@ -107,7 +106,7 @@ Install ImageMagick
107 106  
108 107 .. code-block::
109 108  
110   - sudo yum install php-pear gcc ImageMagick ImageMagick-devel ImageMagick-perl
  109 + sudo yum install php-pear ImageMagick ImageMagick-devel ImageMagick-perl -y
111 110  
112 111 Install Gem Bundle
113 112  
... ... @@ -115,15 +114,15 @@ Install Gem Bundle
115 114  
116 115 sudo gem install bundle --no-ri --no-rdoc
117 116  
118   -Install NGINX
119   -
120   -.. code-block::
121   -
122   - cd /tmp
123   - wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
124   - sudo rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
125   - sudo yum install nginx -y
126   - sudo chkconfig nginx on
  117 +#Install NGINX
  118 +#
  119 +#.. code-block::
  120 +#
  121 +# cd /tmp
  122 +# wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
  123 +# sudo rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
  124 +# sudo yum install nginx -y
  125 +# sudo chkconfig nginx on
127 126  
128 127 Install redmine 2.5.1
129 128  
... ...