The machine is installed with javastuserver12.04, which can be configured in two ways. 1. apache2Passenger1. installredmine: sudoapt-getinstallredmineredmine-mysqllibapache2-mod-passenger2.reconfigurationredmine: sudodpkg-recycleredmineconf
The machine is installed with Ubuntu Server 12.04, which can be configured in two ways.
1. apache2 Passenger
1. install redmine:
Sudo apt-get install redmine-mysql libapache2-mod-passenger.
2. reconfiguration redmine:
Sudo dpkg-reconfigure redmine
Configuration file,/etc/redmine/default/database. yml
3. link redmine to apache2
Sudo ln-s/usr/share/redmine/public // var/www/redmine
4. In/etc/apache2/mod-available/passenger. conf, add:
PassengerDefaultUser www-data
5. In/etc/apache2/sites-available/default by adding:
RailsBaseURI/redmine
PassengerResolveSymlinksInDocumentRoot on
6. sudo service apache2 restart
Maybe sudo chmod a + x/usr/share/redmine/public
7. http: // 192.168.2.111/redmine/
Ii. webrick (lightweight less memory)
Cd/usr/share/redmine/
A. Create A session installation key.
Rake generate_session_store
B. initialize the Redmine database structure
RAILS_ENV = production rake db: migrate
C. Import default configuration data
RAILS_ENV = production rake redmine: load_default_data
Note: This step is optional. This command imports default roles, trace tags, statuses, workflows, and enumeration values (we strongly recommend that you execute it ), you can also enter your configuration parameters step by step from the beginning.
D. Add/etc/init/redmine. conf
# Redmine
Description "Redmine"
Start on runlevel [2345]
Stop on runlevel [! 2345]
Reset CT daemon
Exec ruby/usr/share/redmine/script/server webrick-e production-B 0.0.0.0-d
E. sudo service redmine start
F. http: // 192.168.2.111: 3000/
Refer to the redmine official document to configure more information:
Http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu