Redmine-Installation notes
I don't know why my colleagues are obsessed with Redmine. Instead, I gave an old machine to help me install it. I recorded some pitfalls that may help my friends.
Install Ruby
For windows, you can directly install it through RubyInstaller.
Linux can be installed from the source code.
The system is RedHat. Before compilation, yum checks whether dependency items exist.
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
I don't know how to do it,yum
The following message is always prompted:
Error Message: Abuse of Service detected for server xxxxError Class Code: 49
Troubleshooting is too troublesome. A new yum is installed.
Delete the original yum
rpm -aq|grep yum|xargs rpm -e --nodeps
Related rpm
wget http://mirrors.163.com/CentOS/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpmwget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpmwget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpmwget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
Install
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpmrpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpmrpm -ivh yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Find a usable yum source and place it in/etc/yum.repos.d/
, Run
yum clean allyum makecache
After executing the command again, I found a new prompt.
RHN yum command: Unable to read consumer identity Warning and Solution
To solve the problem, follow these steps:
Modify
- /Etc/yum/pluginconf. d/product-id.conf
- /Etc/yum/pluginconf. d/subscription-manager.conf
Change enabled to 0.
Save and exit and execute
rm -rf /var/cache/yum/*yum clean all
Okay. Install ruby.
tar zxvf ruby.tar.gzcd ruby./configuremakemake installruby -vexport PATH=/usr/local/ruby/bin:$PATH
Install Redmine
Download redmine-2.6.2.tar.gz
tar zxvf redmine-2.6.2.tar.gzmkdir /var/www/redminecd redmine-2.6.2cp -av redmine-2.6.2/* /var/www/redmine
In other words, you need to configure a database with MySQL on the machine, and create a database and a user for redmine.
create database redmine character set utf8;create user 'redmine'@'localhost' identified by 'my_password';grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password';
Modify the database configuration in redmine, and modify the name and configuration.
cd /var/www/redmine/configcp database.yml.example database.yml
Use bundler for dependency management
gem install bundlercd /var/www/redminebundle install
The following prompt appears:
linking shared-object fiddle.so
/usr/bin/ld: ./libffi-3.2.1/.libs/libffi.a(rawapi.o): relocation RX866432 against `.text' can not be used when making a shared object; recompile with -fPIC
./libffi-3.2.1/.libs/libffi.a: could not read symbols: Bad value
Recompile-fPIC
?
Installing libffi-dev can solve this problem, refer to the https://github.com/sstephenson/ruby-build/issues/690#issuecomment-68113987
Create a table
rake db:migrate RAILS_ENV="production"
Load Default Configuration
rake redmine:load_default_data RAILS_ENV="production"
Start
ruby script/rails server webrick -e production -d
To access redmine through Nginx, do not do passenger or something first.
Modify conf/nginx. conf and save and restart:
upstream redmine { server 127.0.0.1:3000;}server { server_name redmine; root /var/www/redmine/public; location / { try_files $uri @redmine; } location @redmine { proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://redmine; }}
Install Redmine in CentOS and integrate Git
The most simplified Redmine deployment method in Ubuntu 10.04
Precautions for installing Redmine on Ubuntu 10.04 by default
Install and configure Redmine in CentOS 5
Set up PostgreSQL-based Redmine in Ubuntu 9.10
Install the open-source project management software Redmine in Ubuntu
How to upgrade the Turnkey Redmine VM from Redmine 1.0.5 to 1.2
Set up the Redmine environment, mail service configuration, and LDAP configuration in CentOS5
Redmine details: click here
Redmine: click here
This article permanently updates the link address: