真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

Redmine3.3搭建

環(huán)境介紹:

成都創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供嘉陵網(wǎng)站建設(shè)、嘉陵做網(wǎng)站、嘉陵網(wǎng)站設(shè)計(jì)、嘉陵網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、嘉陵企業(yè)網(wǎng)站模板建站服務(wù),10年嘉陵做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。

CentOS Linux release 7.6.1810 (Core)

MySQL5.7

Redmine 3.3

ruby-2.3.3

Rails 4.2.6

參考文檔:http://www.redmine.org/projects/redmine/wiki/RedmineInstall

1. 環(huán)境準(zhǔn)備

官方的yum源下載軟件速度慢,把yum源替換成阿里的yum源,并安裝epel源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum clean all

yum makecache

安裝rvm及ruby

curl -L https://get.rvm.io | bash -s stable

此時(shí)會(huì)報(bào)錯(cuò),按照返回的提示執(zhí)行相應(yīng)的命令

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3

(替換成你提示的執(zhí)行命令)

設(shè)置Ruby系統(tǒng)環(huán)境

source /etc/profile.d/rvm.sh

rvm reload??

rvm install 2.3.3

切換阿里的源

gem source -r https://rubygems.org/

gem source -a http://mirrors.aliyun.com/rubygems/

安裝

gem install rake -v 12.0.0

gem install rails -v 4.2.6

安裝mysql數(shù)據(jù)庫(5.7)

Wget https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm

安裝mysql源

yum -y install mysql80-community-release-el7-2.noarch.rpm

(注意默認(rèn)安裝的是MySQL8.0,所以安裝好yum源后,要修改yum源的配置,把mysql8.0禁掉,開啟mysql5.7的源后再進(jìn)行安裝)。

yum repolist enabled | grep mysql.*

yum install mysql-community-server

systemctl start? mysqld.service

運(yùn)行一下命令查看一下運(yùn)行狀態(tài)

systemctl status mysqld.service

查看一下初始密碼

grep "password" /var/log/mysqld.log

登錄

mysql -uroot -p

修改密碼

mysql>ALTER USER 'root'@'localhost' IDENTIFIED BY '****************';

mysql>FLUSH PRIVILEGES;

設(shè)置自動(dòng)啟動(dòng)

systemctl enable mysqld

systemctl daemon-reload

2. 數(shù)據(jù)庫操作

CREATE DATABASE redmine CHARACTER SET utf8mb4;

CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'redmine';

GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';

3. 更改配置文件

解壓軟件包redmine-3.3.0.tar.gz

tar xf? redmine-3.3.0.tar.gz -C /opt

cd /opt/redmine-3.3.0

cp? database.yml.example? database.yml

修改database.yml如下內(nèi)容(這塊要仔細(xì),不要亂改數(shù)據(jù)庫名,否則會(huì)出問題,最好一致)

production:

adapter: mysql2

database: redmine

host: localhost

username: redmine

password: "redmine"

Redmine使用Bundler管理gem依賴項(xiàng),需要先安裝Bundler

gem install bundler

Then you can install all the gems required by Redmine using the following command:

bundle install --without development test

(執(zhí)行這個(gè)命令后報(bào)錯(cuò),解決辦法yum -y install ImageMagick-devel,然后再執(zhí)行一遍undle install --without development test)

Session store secret generation:

bundle exec rake generate_secret_token

在應(yīng)用程序根目錄下(/opt/redmine-3.3.0)運(yùn)行以下命令,創(chuàng)建數(shù)據(jù)庫結(jié)構(gòu):

RAILS_ENV=production bundle exec rake db:migrate

設(shè)置數(shù)據(jù)庫默認(rèn)數(shù)據(jù)集,通過運(yùn)行以下命令,在數(shù)據(jù)庫中插入默認(rèn)配置數(shù)據(jù):

RAILS_ENV=production bundle exec rake redmine:load_default_data

輸入zh

至此,redmine安裝完成。

3.啟動(dòng)redmine

cd /opt/redmine-3.3.0/bin

echo –e? ‘#!/bin/bash\nbundle exec rails server webrick -e production -p 3000 -b 0.0.0.0 -d’? >> start.sh

chmod +x start.sh

./start.sh

4.訪問redmine

http://your_ip:3000

Redmine 3.3搭建


文章名稱:Redmine3.3搭建
本文路徑:http://weahome.cn/article/gogiep.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部