惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - OSSSME

网络学习(学堂在线) C/S和B/S 赞美创新,好酸啊。 上海马拉松网上报名网上报名名额已满 ⇒ 报名成功 强制关机后导致VBOX(4.2.16 r86992)的虚拟机不可使用问题的解决MEMO 纪念一下雅虎中国 - 关闭社区服务的通知截图 关于阿里云服务器无外网带宽服务器 使用万网+阿里云服务器(Apache)配置二级域名 【NEWS】 ADempiere发布ADempiere 3.8.0路线图【2013年7月28日】 OSSSME - 开源软件助力中小企业发展 iDempiere VS World iDempiere VS ADempiere 为Drupal7.22添加富编辑器 on Ubuntu 12.04 说说iDempiere = OSGi + ADempiere的OSGi 购买阿里云云服务器( 最小配置) 安装Drupal7.12升级至7.22 2013夏,iDempiere来了 - v1.0c Installers (Devina LTS Release) 2013-06-27 从源代码制作iDempiere Server安装软件(Ubuntu Desktop 12.04 LTS 64位) 用squid配置代理服务器(基于Ubuntu Server 12.04) iDempiere = OSGi + ADempiere 一款ERP&CRM&SCM系统、助力中小企业发展
安装Redmine 2.3.0(Ubuntu 12.04 Server)
OSSSME · 2013-07-04 · via 博客园 - OSSSME

安装Redmine 2.3.0(Ubuntu 12.04 Server)

翻译源\参考源信息:

   hirooka.pro 的 http://hirooka.pro/?p=1139

首先,先把感觉需要的软件都事先安装上

$ sudo apt-get install libyaml-dev libncurses5-dev libgdbm-dev libssl-dev libyaml-dev libreadline-dev tk-dev zlib1g-dev libmysqld-dev libmagickwand-dev apache2-threaded-dev

DB使用MySQL、WEB服务器使用Apache时,需要是现状下述软件。

$ sudo apt-get install apache2 mysql-server php5-mysql php5 php5-cgi libapache2-mod-php5 php5-common php-pear

Ruby

下载Ruby 

编译Ruby 

$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
$ tar zxvf ruby-1.9.3-p392.tar.gz
$ cd ruby-1.9.3-p392
$ ./configure
$ make
$ sudo make install
安装完成后确认版本信息

安装bundler

$ sudo /usr/local/bin/gem install bundler --no-rdoc --no-ri

MySQL

设定MySQL


$ cd /etc/mysql/conf.d/
$ sudo vi characterset.cnf

设定内容

[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8

重启MySQL


$ sudo service mysql restart
确认MySQL文字编码




mysql> show variables like 'character_set%';

执行结果:

+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.01 sec)

制作数据库

  做成Redmine的Mysql数据库和用户。




例:


mysql> create database db_redmine default character set utf8;
mysql> grant all on db_redmine.* to user_redmine@localhost identified by 'password';
mysql> flush privileges;
mysql> exit;

Redmine

下载Redmine

http://rubyforge.org/frs/?group_id=1850 下载Redmine 2.3.0

Redmine解压、配置


$ wget http://rubyforge.org/frs/download.php/76867/redmine-2.3.0.tar.gz
$ tar zxvf redmine-2.3.0.tar.gz 
$ sudo mv redmine-2.3.0 /usr/local/
$ sudo ln -s /usr/local/redmine-2.3.0 /usr/local/redmine

设置数据库连结

做成database.yml

$ cd /usr/local/redmine/config
$ vi database.yml

内容例:

production:
  adapter: mysql2
  database: db_redmine
  host: localhost
  username: user_redmine
  password: password
  encoding: utf8

安装Gem


$ cd /usr/local/redmine
$ bundle install --without development test postgresql sqlite

Redmine的初始设定以及数据库表的做成


$ bundle exec rake generate_secret_token
$ RAILS_ENV=production bundle exec rake db:migrate


安装Passenger


$ sudo gem install passenger --no-rdoc --no-ri

安装Passenger的Apache使用模块


$ sudo /usr/local/bin/passenger-install-apache2-module

注:这里和预想不一致,由于默认安装的Passenger为4.05(原文为3.0.19)安装的 版本过高。需要手工安装ssl,按照安装提示apt-get即可。

Apache

添加Passenger的设定信息

制作Apache需要使用的Passenger设定文件


$ sudo vi /etc/apache2/conf.d/passenger.conf

注:设定内容需要按学号下述命令输出结果来设定
passenger-install-apache2-module --snippet




为Redmine执行来配置Apache上的Passenger


$ sudo chown -R www-data:www-data /usr/local/redmine-2.3.0


$ sudo ln -s /usr/local/redmine/public /var/www/hoge


在/etc/apache2/conf.d/passenger.conf 最后一行添加下述内容


$ sudo vi /etc/apache2/conf.d/passenger.conf


RailsBaseURI /hoge

重启Apache


$ sudo /etc/init.d/apache2 restart


尝试远程访问

http://(IP地址)/hoge/ 如果现实Redmine的话,表示安装完成。

安装完Redmine之后

    请根据需要做各种设定,但无论如何最少也要修改admin的密码,

同时修改用户登录为无效、同时选择需要认证的检查。

追加2013-7-11:

   需要在/usr/local/redmine/public下创建plugin_assets文件夹并配置权限。否则管理-信息中的插件的附件路径可写会报警。