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 > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "detailed installation tutorial of Redmine 3.2under centos". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Prerequisites to install the redmine ruby environment version requirements:
1. Installation dependency
Yum install zlib*
Yum install openssl*
Yum install ImageMagick-devel-y
two。 Install ruby
Tar-zxvf ruby-2.0.0-p481.tar.gz
. / configure-- prefix=/usr/local/ruby
Make
Make install
Verify:
Vim / etc/profile-> exportPATH=/usr/local/ruby/bin:$PATH-> source / etc/profile
[root@localhost] # ruby-v
Ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
3. Install rubygem
Tar-zxvf rubygems-2.4.1.tgz
Ruby setup.rb
Verify:
[root@localhost] # gem-v
2.4.1
4. Replace the gem source, because the default is the American gem source, which is relatively slow. Fortunately, there is ruby.taobao.org on Taobao in China.
[root@localhost ~] # gem sources-this is the default. Delete it.
* CURRENT SOURCES * *
Https://rubygems.org/
[root@localhost ~] # gem sources-- remove https://rubygems.org/-- delete
Https://rubygems.org/ removed from sources
[root@localhost ~] # gem sources-a https://ruby.taobao.org/-add
Https://ruby.taobao.org/ added to sources
5. Install rails 4.2.5 mongrel
Gem install rails-vault 4.2.5
Gem install mongrel-v=1.2.0.pre2
6. Install mysql (here using yum installation)
Yum install-y mysql-server mysql mysql-devel
Service mysqld start-start mysql
7. Create redmine databases and users
Mysql > createdatabase redmine character set utf8
Mysql > createuser 'redmine'@'%' identified by' redmine'
Mysql > grantall privileges on redmine.* to 'redmine'@'%'
8. Install httpd (I use yum installation here)
Yum install httpd httpd-devel
9. Download redmine and configure
Tar-zxvf redmine-3.2.0.tar.gz-C/var/www/html/
Cd / var/www/html/redmine
Cp database.yml.example database.yml
Vim database.yml
Production:
Adapter: mysql2
Database: redmine
Host: localhost
Username: redmine
Password: "redmine"
Encoding: utf8
10. Configure the session (there are usually a lot of errors here, but it's all dependent on the package)
As shown above, if the gem package was not found, use bundle install (if you do not have this gem package, use gem installbundle)
Note: using bundle installation defaults to American gem source. We want to modify it to Taobao's gem source.
[root@localhost redmine] # vim Gemfile
# source 'https://rubygems.org'-comment out
Source' https://ruby.taobao.org'-add Taobao gem feed
Then execute bundle install
11. Start a configuration session
Rake generate_secret_token
twelve。 Import generated data
Rake db:migrate RAILS_ENV='production'
13. Start redmine
Ruby bin/railsserver webrick-e production-d-b 0.0.0.0-p 8000
The default username and password are all admin
Then check port 8000:
Browser access: http://192.168.10.30:8000
This is the end of the detailed installation tutorial for Redmine 3.2 under centos. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.