In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Build redmine project management system
I. system environment preparation
1. Complete installation of MINI version of centos 6.5 operating system
two。 Update the operating system to 6.7 # yum update
View version # cat / etc/redhat-release
3. Turn off the firewall
Close command # service iptables stop
Permanently turn off the firewall # chkconfig iptables off
The two commands are run at the same time. Check the firewall shutdown status after the run is completed.
# service iptables status
4. Close SELINUX and change to SELINUX=disabled
# vim / etc/selinux/config
5. Download the software required by redmine, ruby,rubygems,redemine,msql update package
Create the tools folder # mkdir / tools
Enter the tools file # cd / tools
Download related softwar
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
# wget http://production.cf.rubygems.org/rubygems/rubygems-2.4.5.tgz
# wget http://www.redmine.org/releases/redmine-2.4.0.tar.gz
# wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.6.tar.gz
6. The environment required to install redmin
# yum-y install libyaml-devel zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel gcc ruby-devel gcc-c++ make postgresql-devel ImageMagick-devel sqlite-devel perl-LDAP mod_perl perl-Digest-SHA
7. Install apache and mysql
# yum install mysql-community-server mysql mysql-devel httpd httpd-devel mysql-server-y
# rpm-ivh epel-release-latest-6.noarch.rpm
# rpm-Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
8. Start mysql
Start
# service mysqld start
Use your root account to access the database
# mysql-uroot
Create a redemine database
Create a database named redmine and ask the utf-8 format for a given character set
Mysql > create database redmine character set utf8
Refresh all forms mysql > flush privileges
Exit database mysql > exit
9. Install ruby
Enter the toos file # cd / tools
Extract the ruby-2.1.6.tar.gz installation package # tar xzvf ruby-2.1.6.tar.gz
Enter the decompressed ruby-2.1.6 folder # cd ruby-2.1.6
Install the ruby-2.1.6 software #. / configure-- prefix=/usr/local/ruby
Install the ruby-2.1.6 software dependency library # make & & make install
10. Change the profile file
Edit the profile file # vim / etc/profile
Export PATH=/usr/local/ruby/bin:$PATH adds this line to the export line in the document.
Label the unique path # source / etc/profile
See ruby version # ruby-v
11. Install rails
Enter the tloos folder # cd / tools
Extract the rubygems-2.4.5.tgz installation package # tar xzvf rubygems-2.4.5.tgz
Enter the decompressed rubygems-2.4.5 folder # cd rubygems-2.4.5
Install the rubygems-2.4.5 software # ruby setup.rb
View rubygems version # gem-v
View the gem installation path # which gem
twelve。 Change the gem feed to the Taobao source. The default official source is slow due to network problems.
Delete the official source # gem sources-remove https://rubygems.org/
Add Amoy Source # gem sources-a https://ruby.taobao.org/
Query gem source record # gem sources-l
Install rails 4.2 version of the software gem install rails-vault 4.2
13. Install redmine 2.4
Enter the tools file # cd / tools
Create home and www folders and put www in home # mkdir / home/www
Extract the redmine2.4.0 to the www folder # tar xzvf redmine-2.4.0.tar.gz-C / home/www/
Enter # cd / home/www in the www folder
Rename the redmine-2.4.0 folder to redmine # mv redmine-2.4.0/ redmine
Enter the # cd redmine/ of the redmine collection
Install the database # gem install mysql2 used by redmine
14. Configure the redmine file
Enter the config file # cd config
Copy the database.yml.example file and rename it to database.yml
# cp database.yml.example database.yml
Edit the database.yml file # vim database.yml
14. Install the software that redmine depends on to run
Enter the redmine folder # cd / home/www/redmine
Install dependency software # gem install bundler
Verify that the dependency software is missing # bundle install-the command without development test rmagick will report an error after execution, which means that you have a dependency that is not installed. Just install all the dependencies you need as he prompts. It's basically the one at the beginning of gem install. There are about 20-30 dependencies. Pretend to be patient. If you are good at SHELL, you can write a script package.
Gem install rake-v '11.1.2'
Gem install multi_json-v '1.12.0'
Gem install builder-v '3.0.0'
Gem install erubis-v '2.7.0'
Gem install journey-v '1.0.4'
Gem install rack-v '1.4.7'
Gem install hike-v '1.2.3'
Gem install tilt-v '1.4.1'
Gem install mime-types-v '1.25.1'
Gem install polyglot-v '0.3.5'
Gem install arel-v '3.0.3'
Gem install tzinfo-v '0.3.49'
Gem install coderay-v '1.1.1'
Gem install json-v '1.8.3'
Gem install thor-v '0.19.1'
Gem install mysql2-v '0.3.21'
Gem install net-ldap-v '0.3.1'
Gem install ruby-openid-v '2.3.0'
Gem install activesupport-v '3.2.15'
Gem install rack-cache-v '1.6.1'
Gem install rack-test-v '0.6.3'
Gem install rack-ssl-v '1.3.4'
Gem install sprockets-v '2.2.3'
Gem install treetop-v '1.4.15'
Gem install rdoc-v '3.12.2'
Gem install rack-openid-v '1.4.2'
Gem install activemodel-v '3.2.15'
Gem install mail-v '2.5.4'
Gem install actionpack-v '3.2.15'
Gem install activerecord-v '3.2.15'
Gem install activeresource-v '3.2.15'
Gem install actionmailer-v '3.2.15'
Gem install railties-v '3.2.15'
Gem install jquery-rails-v '2.0.3'
Gem install rails-v '3.2.15'
15. Generate a cookies key for Rails
# rake generate_secret_token
16. Adjust file system permissions
Enter the redmine folder # cd / home/www/redmine/
Add tmp tmp,pdf public,plugin_assets folders one by one
# mkdir-p tmp tmp/pdf public/plugin_assets
Add apache write permissions to home and www folders # chown-R apache.apache / home/www/
Allow root accounts to write, read, and execute folders for howme and www
# chmod-R 755 / home/www/
17. Initialize the database installed by redmine
# rake db:migrate RAILS_ENV=production
# rake redmine:plugins:migrate RAILS_ENV=production
# rake tmp:cache:clear
# rake tmp:sessions:clear
18. Test whether redmine is installed successfully
Start the redmine program # ruby/ usr/local/ruby/bin/rails server webrick-e production-d
View the port number # netstat-tpnl enabled by IP or host on the centos6.7 system
19. Install Passenger:
Gem install passenger
Passenger-install-apache2-module # Select "1" at this time to start installation and configuration
20. "mod_passenger.so" permission (this file will appear during the compilation process above):
Check the "mod_passenger.so" file path: if you close selinux ahead of time, you do not need to run step 21
Ll / usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so | awk {'print $NF'}
Chcon-R-h-t httpd_sys_script_exec_t / usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so
21. Modify Apache configuration:
Vim / etc/httpd/conf.d/redmine.conf
LoadModule passenger_module / usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so
PassengerRoot / usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.28
PassengerDefaultRuby / usr/local/ruby/bin/ruby
ServerName 10.255.96.53
DocumentRoot / home/www/redmine/public
AllowOverride all
Options-MultiViews
20. Start Apache
/ etc/init.d/httpd restart
21. Set up the SMTP:
Cd / home/www/redmine/config
Cp configuration.yml.example configuration.yml
Vim configuration.yml
Default:
Email_delivery:
Delivery_method:: smtp
Smtp_settings:
Address: xxx.xxxx.xxx
Port: 25
Domain: xxxx.xxx
Authentication:: login
User_name: "redmine"
Password: "XXXXXXXXXXXXXXX"
twenty-two。 Install the plug-in:
1. Redmine DMSF plug-in (using DMSF 1.4.6):
Yum install-y libuuid-devel e2fsprogs-devel
Cd / home/www/redmine/plugins/
Wget https://github.com/danmunn/redmine_dmsf/archive/1.4.6.tar.gz-O redmine_dmsf.tar.gz
Tar zxf redmine_dmsf.tar.gz
Mv redmine_dmsf-1.4.6 redmine_dmsf
Cd / home/www/redmine/plugins/redmine_dmsf
Vim Gemfile
Source 'https://ruby.taobao.org'
Bundle install-without xapain development test
Chown-R apache:apache / home/www
Rake redmine:plugins:migrate RAILS_ENV= "production"
Rm-rf. / redmine_dmsf.tar.gz
2. Redmine knowledgebase plug-in (using Knowledgebase 3.0.7):
Cd / home/www/redmine/plugins
Wget https://github.com/alexbevi/redmine_knowledgebase/archive/v3.0.7.tar.gz-O redmine_knowledgebase.tar.gz
Tar zxf redmine_knowledgebase.tar.gz
Mv redmine_knowledgebase-3.0.7 redmine_knowledgebase
Chown-R apache:apache / home/www
Cd / home/www/redmine/plugins/redmine_knowledgebase
Vim Gemfile
Source 'https://ruby.taobao.org'
Bundle install-without development test
Rake db:migrate_plugins RAILS_ENV=production
Rm-rf. / redmine_knowledgebase.tar.gz
3. Ckeditor plug-in (using Ckeditor 1.0.20):
Yum install-y ImageMagick
Gem install sass-rails
Cd / home/www/redmine/plugins
Wget https://github.com/a-ono/redmine_ckeditor/archive/1.0.20.tar.gz-O redmine_ckeditor.tar.gz
Tar zxf redmine_ckeditor.tar.gz
Mv redmine_ckeditor-1.0.20 redmine_ckeditor
Chown-R apache:apache / home/www
Cd / home/www/redmine/plugins/redmine_ckeditor
Vim Gemfile
Source 'https://ruby.taobao.org'
Bundle install-without development test
Rake db:migrate_plugins RAILS_ENV=production
Rm-rf. / redmine_ckeditor.tar.gz
CKEditor configuration:
1. Manage-> plug-ins-> Redmine CKEditor plugin
2. Configuration:
Skin: kama
Enter mode: br
Startup show blocks: deselect
Enable the plug-in:
1. Manage-> configuration
2. Configuration:
Text format: CKEditor
4. Issue templates plug-in (using Issue templates 0.0.6):
Download:
Address: https://bitbucket.org/akiko_pusu/redmine_issue_templates/downloads
Version: 0.0.6
Cd / home/www/redmine/plugins/
Unzip redmine_issue_templates-0.0.6.zip
Mv akiko_pusu-redmine_issue_templates-a937d537f44d redmine_issue_templates
Cd redmine_issue_templates
Bundle install-without development test
Rake redmine:plugins:migrate RAILS_ENV=production
Chown-R apache:apache / home/www
Enable the plug-in:
1. Enter the project to be configured-> configure-> module
2. Configuration:
Check-- question template
21. Use account: admin password: admin login http://10.255.96.53 Select-manage-ldap authentication
twenty-two。 Log in to http://10.255.96.53 to enter domain accounts such as: jiyanjun enter email password: xxxxx automatically identifies ldap users and saves the corresponding accounts to the redmine account database
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.