Centos 7 Installation Redmine 3.X

Source: Internet
Author: User
Tags gmp install openssl redmine

One, configure the network card, can access the Internet (slightly)

========================================================

Second, the configuration environment

Yum-y Install patch make GCC gcc-c++ gcc-g77 flex* Bison file

Yum-y Install Libtool libtool-libs libtool-ltdl-devel* autoconf kernel-devel automake libmcrypt*

Yum-y Install libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel

Yum-y Install FreeType freetype-devel libxml2 libxml2-devel zlib zlib-devel

Yum-y Install glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel

Yum-y Install ncurses ncurses-devel Curl Curl-devel e2fsprogs

Yum-y Install e2fsprogs-devel krb5 krb5-devel libidn libidn-devel

Yum-y install OpenSSL openssl-devel vim-minimal nano sendmail

Yum-y Install Fonts-chinese GetText gettext-devel

Yum-y Install Gmp-devel Pspell-devel

Yum-y Install readline* libxslt* pcre* net-snmp* gmp* libtidy*

Yum-y Install imagemagick* subversion*

Yum-y Install wget

======================================================

Third, install MySQL

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

RPM-IVH mysql-community-release-el7-5.noarch.rpm

Yum Install Mysql-community-server Mysql-community-devel

Rpm-qa |grep MySQL #检查安装

=======================================================

Iv. installation of RVM

\curl-ssl Https://get.rvm.io | Bash

SOURCE/ETC/PROFILE/USR/LOCAL/RVM/BIN/RVM Reload

RVM-V #: The version number does not appear please reload

=======================================================

V. Installing Ruby

RVM list Known #查看可安装列表

RVM Install ruby-2.1.8 #官方只支持1. Version between 9~2.2

Gem-v #如果未显示版本, re-install Ruby


===========================================================

Vi. Updating the gem source

Gem Source-l

Gem Source-r https://rubygems.org/#: The default URL address must have "/", otherwise it will not be deleted.

Gem Source-a https://ruby.taobao.org/

Gem Source-l #: Confirm only https://ruby.taobao.org/

=======================================================

Vii. Installation of GEM components

Gem Install Rails

Gem Install Rake

Gem Install MYSQL2

=======================================================

Viii. Configuring Redmine database files

Cd/usr/local/redmine/config

CP Database.yml.example DATABASE.YML

VI database.yml

Production

Adapter:mysql

Database:redmine

Host:localhost

Username:redmineuser

Password:redminepw

Encoding:utf8

======================================================

Nine, configure MySQL

Service mysqld Start

Mysql-u root-p

Mysql> CREATE DATABASE redmine default character set UTF8;

Grant all on redmine.* to root;

Grant all on redmine.* to [email protected];

Grant all on redmine.* to Redmineuser;

Grant all on redmine.* to Redmineuser @localhost;

Set password for [email protected]=password (' REDMINPW ');

Set password for [email protected]=password (' newpass ');

Flush privileges;

Exit

=======================================================

X. Installation of Redmine

cd/usr/local/

SVN Co http://svn.redmine.org/redmine/branches/3.2-stable/

MV 3.2-stable Redmine

CD Redmine

Bundle Install

=====================================================

Xi. Initialization of Redmine

Bundle EXEC Rake Generate_secret_token

Rails_env=production Bundle EXEC Rake db:migrate

Rails_env=production bundle EXEC Rake Redmine:load_default_data #初始化数据选择zh

====================================================

Twelve

MKDIR-P tmp tmp/pdf Public/plugin_assets

sudo chmod-r 755 files log tmp public/plugin_assets

===================================================

13. Open Service

Nohup Ruby bin/rails Server webrick-e production-b 0.0.0.0-p &

Bundle EXEC Rails Server webrick-e production-d

===================================================

14. Close the service

    1. (PS command to find out the PID number of this process, and then kill, it seems like this only, I looked at the--help inside, there is no stopping parameters.) )

    2. # PS aux | grep Ruby

    3. # kill-9 [PID]


This article is from the "Zhangl" blog, make sure to keep this source http://214986.blog.51cto.com/204986/1762314

Centos 7 Installation Redmine 3.X

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.