公司软件部门用到redmine这个软件,然后安装了,这里顺便记一下。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
sudo
apt-get
install
apache2 libapache2-mod-passenger ruby
sudo
apt-get
install
mysql-server
sudo
apt-get
install
redmine redmine-mysql
#sudo apt-get install libmysqlclient-dev apache2-threaded-dev rubygems
#----------------
vi
/etc/apache2/mods-available/passenger
.conf
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot
/usr
PassengerRuby
/usr/bin/ruby
<
/IfModule
>
#----------------
sudo
ln
-s
/usr/share/redmine/public
/var/www/redmine
#----------------
vi
/etc/apache2/sites-available/default
<Directory
/var/www/redmine
>
RailsBaseURI
/redmine
PassengerResolveSymlinksInDocumentRoot on
<
/Directory
>
#----------------
#检查 /etc/redmine/default 下面有没有 database.yml、session.yml。如果没有
cd
/usr/share/redmine
sudo
RAILS_ENV=production rake generate_session_store
#----------------
vi
/etc/redmine/default/database
.yml
production:
adapter: mysql
database: redmine
host: localhost
port: 3306
username: root
password: root
encoding: utf8
#----------------
cd
/usr/share/redmine
sudo
RAILS_ENV=production rake db:migrate
#----------------
sudo
/etc/init
.d
/apache2
restart
#----------------
LDAP 设置
Name = My Directory
Host = smtp.163.net
Port = 389
LDAPS = no
Account = 可以为空
Password = 可以为空
Base DN = ou=People,
dc
=163,
dc
=net
On-the-fly user creation =
yes
Attributes
Login = uid
Firstname = givenName
Lastname = sN
Email = mail
#----------------
#邮件设置
/etc/redmine/default/email
.yml
production:
delivery_method: :smtp
smtp_settings:
address:
"smtp.163.net"
port: 25
authentication: :login
domain:
'163.net'
user_name:
'redmine@163.net'
password:
'xxddeedd'
|
本文转自 nonono11 51CTO博客,原文链接:http://blog.51cto.com/abian/1535448,如需转载请自行联系原作者