91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Redmine部署

發布時間:2020-07-22 13:48:53 來源:網絡 閱讀:1029 作者:freeterman 欄目:數據庫

系統環境(最小化安裝):

LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.8 (Final)
Release:        6.8
Codename:       Final


系統更新
yum update

安裝依賴包
yum install -y make apr-devel apr-util-devel \
zlib-devel curl-devel expat-devel gettext-devel \
openssl-devel httpd httpd-devel mysql mysql-server \
mysql-devel libxml2-devel libxslt-devel ImageMagick-devel

Redmine部署

部署ruby

wget http://zy-res.oss-cn-hangzhou.aliyuncs.com/ruby/ruby-2.3.3.tar.gzRedmine部署
tar zxvf ruby-2.3.3.tar.gz
cd ruby-2.3.3
yum install -y gcc*
./configure --prefix=/usr/local/ruby
make
make install

添加環境變量:
vi /etc/profile在未尾添加下面一行:

export PATH=/usr/local/ruby/bin:$PATH


使環境變量生效
source /etc/profile
檢查一下安裝是否成功,ruby版本號
ruby –v

安裝zlib和openssl擴展
cd ruby-2.3.3/ext/zlib/
ruby extconf.rb && make && make install

cd ruby-2.3.3/ext/openssl/
ruby extconf.rb

vim Makefile
在64行添加

top_srcdir = ../..



make
make install

Redmine部署

部署rubygems

wget http://zy-res.oss-cn-hangzhou.aliyuncs.com/ruby/rubygems-2.6.8.tgzRedmine部署
tar zxvf rubygems-2.6.8.tgz
cd rubygems-2.6.8
ruby setup.rb

Redmine部署

部署redmine

wget http://zy-res.oss-cn-hangzhou.aliyuncs.com/redmine/redmine-3.3.1.tar.gzRedmine部署
tar zxvf redmine-3.3.1.tar.gz
mv redmine-3.3.1 /usr/local/redmine
chown -R apache: /usr/local/redmine/

修改database.yml配置文件
cp /usr/local/redmine/config/database.yml.example /usr/local/redmine/config/database.yml
vim /usr/local/redmine/config/database.yml

production:
adapter:mysql2
database:redmine_default //這就是我們后面在mysql里創建的redmine_default數據庫
host:localhost
username:redmine  //這是我們為redmine數據庫創建的用戶
password:"redmine"  //這是用戶訪問redmine數據庫需要的密碼
encoding: utf8



看看是什么鏡像的,默認的是rubygems.org
gem sources –l

刪除原有的鏡像
gem sources --remove https://rubygems.org/Redmine部署

將源鏡改成ruby-china
gem sources -a https://gems.ruby-china.org/Redmine部署

安裝bundler
gem install bindler

安裝rdoc
gem install rdoc rdoc-data

安裝rbpdf-font
gem install rbpdf-font

安裝rails
gem install rails

編輯Gemfile,修改gem源
vim /usr/local/redmine/Gemfile

source 'https://gems.ruby-china.org/'



運行buldle install檢查依賴
cd /usr/local/redmine/
bundle install

Redmine部署

建立數據庫和用戶

啟動數據庫,進入數據庫
service mysqld start
mysql

創建數據庫、用戶
mysql> create database redmine_default character set utf8;
mysql> create user 'redmine'@'localhost' identified by 'redmine';
mysql> grant all privileges on redmine_default.* to 'redmine'@'localhost';
mysql> flush privileges;

cd /usr/local/redmine/
刪除 /usr/local/ruby/lib/ruby/gems/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb 466行
rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data

啟動redmine
ruby /usr/local/redmine/bin/rails server webrick -e production -d

Redmine部署

apache配置代理redmine

apache支持redmine
gem install passenger
passenger-install-apache2-module   一路回車

1、注釋掉原有的ServerName,ServerAdmin,DocumentRoot的信息;
2、啟用虛擬主機的支持,去掉NameVirtualHost *:80前面的#;
3、在配置文件的末尾加上:
在httpd.conf添加

LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/2.3.0/gems/passenger-5.0.30/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/ruby/lib/ruby/gems/2.3.0/gems/passenger-5.0.30
PassengerDefaultRuby /usr/local/ruby/bin/ruby
</IfModule>



添加redmine配置文件
vim /etc/httpd/conf.d/redmine.conf

<VirtualHost *:80>
ServerName www.redmine.comRedmine部署
DocumentRoot /usr/local/redmine/public
ErrorLog logs/redmine_error_log
<Directory "/usr/local/redmine/public">
Allow from all
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

西和县| 五指山市| 名山县| 岗巴县| 吉隆县| 获嘉县| 依兰县| 吉木萨尔县| 修文县| 安义县| 仁寿县| 左云县| 清新县| 淳化县| 平遥县| 阿拉善盟| 临朐县| 得荣县| 萨迦县| 满洲里市| 巢湖市| 益阳市| 松阳县| 长海县| 延吉市| 巨鹿县| 循化| 永胜县| 鲁甸县| 金溪县| 阳原县| 南部县| 盱眙县| 楚雄市| 吉林市| 南溪县| 大洼县| 桃源县| 论坛| 璧山县| 兴义市|