一键安装 redmine on rhel6.4

一键式安装redmine省去了大量不必要的时间。下载:bitnami-redmine-2.5.2-1-linux-x64-installer.run。

https://bitnami.com/stack/redmine

安装过程如下:

[root@vm-redmine ~]# ./bitnami-redmine-2.5.2-1-linux-x64-installer.run
Language Selection

Please select the installation language
[1] English - English
[2] Spanish - Español
[3] Japanese - 日本語
[4] Korean - 한국어
[5] Simplified Chinese - 简体中文
[6] Hebrew - עברית
[7] German - Deutsch
[8] Romanian - Română
[9] Russian - Русский
Please choose an option [1] : 5
----------------------------------------------------------------------------
欢迎来到 Bitnami Redmine Stack 安装程序。

----------------------------------------------------------------------------
选择您想要安装的组件,清除您不想安装的组件。当您准备继续时,点击前进。

Subversion [Y/n] :Y

PhpMyAdmin [Y/n] :Y

Redmine : Y (Cannot be edited)

Git [Y/n] :Y

上述选择是否正确? [Y/n]: Y

----------------------------------------------------------------------------
安装文件夹

请选择安装Bitnami Redmine Stack的文件夹

选择一个文件夹 [/opt/redmine-2.5.2-1]: 

----------------------------------------------------------------------------
创建管理员帐户

Bitnami Redmine Stack admin 用户创建

您的真实姓名 [User Name]: cl    

Email地址 [user@example.com]: ??????@qq.com

登录 [user]: master

密码 :
请确认密码 :
----------------------------------------------------------------------------
缺省数据配置语言

选择缺省数据配置语言:

[1] 保加利亚语
[2] 捷克语
[3] 德语
[4] 英语
[5] 西班牙
[6] 法语
[7] 希伯来语
[8] 意大利语
[9] 日语
[10] 朝鲜语
[11] 荷兰语
[12] 波兰语
[13] 葡萄牙语
[14] 葡萄牙语/巴西
[15] 罗马尼亚语
[16] 俄语
[17] 塞尔维亚语
[18] 瑞典语
[19] 中文
[20] 中文/繁体
请选择选项 [19] : 

Do you want to configure mail support? [y/N]: y

----------------------------------------------------------------------------
配置SMTP设置

This is required so your application can send notifications via email.

默认电子邮件提供商:

[1] GMail
[2] 自定义
请选择选项 [1] : 2

----------------------------------------------------------------------------
配置SMTP设置

This data is stored in the application configuration files and may be visible to
others. For this reason, it is recommended that you do not use your personal
account credentials.

用户名 []: ??????@qq.com

密码 :
重新输入 :
SMTP 主机 []: smtp.qq.com

SMTP端口 []: 25

安全连接

[1] 没有
[2] SSL
[3] TLS
请选择选项 [3] : 

----------------------------------------------------------------------------
安装程序已经准备好将 Bitnami Redmine Stack 安装到您的电脑。

您确定要继续吗? [Y/n]: y

----------------------------------------------------------------------------
正在安装 Bitnami Redmine Stack 至您的电脑中,请稍候。

 正在安装
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
安装程序已经将 Bitnami Redmine Stack 安装于您的电脑中。

启动Redmine应用程序。 [Y/n]: Y

信息: 访问 Bitnami Redmine Stack, 从你的浏览器访问http://localhost:80。
按 [Enter] 继续:
[root@vm-redmine ~]#

安装好之后如果发现无法发邮件,登录qq邮箱,确定开启smtp。

游戏->设置->账户:
POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务
开启服务:
    x  POP3/SMTP服务 (如何使用 Foxmail 等软件收发邮件?)
    x  IMAP/SMTP服务  (什么是 IMAP,它又是如何设置?)
    x  Exchange服务 (什么是Exchange,它又是如何设置?)
    x  CardDAV/CalDAV服务 (什么是CardDAV/CalDAV,它又是如何设置?)
    x (POP3/IMAP/SMTP/CardDAV/CalDAV服务均支持SSL连接。如何设置?)

我因为新申请了一个qq邮箱,而没有配置上面内容,出现错误:(end of file reached) 。导致折腾一天。

"redmine"测试邮件 发送邮件时发生错误 (end of file reached

开启redmine:

# /opt/redmine-2.5.2-1/ctlscript.sh restart

访问:

http://vm-redmine:80

查看一下配置文件: /opt/redmine-2.5.2-1/apps/redmine/htdocs/config/configuration.yml

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:

      address: smtp.qq.com
      port: 25
      domain: example.net
      authentication: :login
      user_name: ??????@qq.com
      password: ********

由于我是在内部网段安装的redmine,需要在对外服务的网段的nginx配置中指向它。nginx的配置如下:

1)在nginx的安装目录(/usr/local/nginx/)里,找到conf/nginx.conf,修改如下(在http {...} 里面加入include redmine.conf;):

...
http {
...
include redmine.conf;
...
}
...

2)创建/usr/local/nginx/redmine.conf,内容如下:

# 指向内网redmine的web服务(192.168.10.100:80)
#
upstream redmine {
    server 192.168.10.100:80;
}

server {
	server_name vm-redmine;

	# /var/log/nginx 本地目录必须存在
	access_log  /var/log/nginx/redmine_access.log;
	error_log   /var/log/nginx/redmine_error.log;

	location /redmine {
		try_files $uri @ruby;      # @ruby 名字是任意的
	}

	location @ruby {
		proxy_set_header  Host             $host;
		proxy_set_header  X-Real_IP        $remote_addr;
		proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;

		proxy_read_timeout     300;
		proxy_connect_timeout  300;
		proxy_redirect         off;

		proxy_pass http://redmine;  # 指向 upstream redmine
	}
}

3) 重新加载nginx配置:

$ /usr/local/nginx/sbin/nginx -t                  # 测试配置文件
$ /usr/local/nginx/sbin/nginx -s reload       # 重新加载nginx.conf

============================= A nginx sample on ubuntu14.04 ============================

1) install nginx on ubuntu:

$ sudo apt-get install nginx

2) config files

/etc/nginx/nginx.conf

user www-data;
worker_processes 4;
pid /run/nginx.pid;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;
	gzip_disable "msie6";

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# nginx-naxsi config
	##
	# Uncomment it if you installed nginx-naxsi
	##

	#include /etc/nginx/naxsi_core.rules;

	##
	# nginx-passenger config
	##
	# Uncomment it if you installed nginx-passenger
	##

	#passenger_root /usr;
	#passenger_ruby /usr/bin/ruby;

	##
	# Virtual Host Configs
	##

        # PLEASE NOTE BELOW 2 LINES:
	include /etc/nginx/conf.d/*.conf;
######## include /etc/nginx/sites-enabled/*;
}

#mail {
#	# See sample authentication script at:
#	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#	# auth_http localhost/auth.php;
#	# pop3_capabilities "TOP" "USER";
#	# imap_capabilities "IMAP4rev1" "UIDPLUS";
#
#	server {
#		listen     localhost:110;
#		protocol   pop3;
#		proxy      on;
#	}
#
#	server {
#		listen     localhost:143;
#		protocol   imap;
#		proxy      on;
#	}
#}

/etc/nginx/conf.d/redmine.conf

# 指向内网redmine的web服务(192.168.122.21:80)
#
upstream redmine {
    server 192.168.122.21:80;
}

server {
    server_name vm-redmine;

    # /var/log/nginx 本地目录必须存在
    access_log  /var/log/nginx/redmine_access.log;
    error_log   /var/log/nginx/redmine_error.log;

    location /redmine {
        try_files $uri @ruby;      # @ruby 名字是任意的
    }

    location @ruby {
        proxy_set_header  Host             $host;
        proxy_set_header  X-Real_IP        $remote_addr;
        proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;

        proxy_read_timeout     300;
        proxy_connect_timeout  300;
        proxy_redirect         off;

        proxy_pass http://redmine;  # 指向 upstream redmine
    }
}

3) make sure http 80 port is accessiable on redmine machine.

一键安装 redmine on rhel6.4的更多相关文章

  1. 一键安装 gitlab7 on rhel6.4 并设置邮件发送

    一键安装 gitlab7 on rhel6.4 并设置邮件发送 世间本无事,庸人自扰之.书归正传,简短节说:gitlab是个好东西,可是安装手冊奇烂.尽管以前对比文档一步一步安装起来gitlab 6. ...

  2. 一键安装 redmine on windows 和发邮件设置

    一键安装 redmine on windows 和发邮件设置 1)使用http://bitnami.org/stack/redmine一键安装redmine (windows). 2)修改下面的文件: ...

  3. BitNami一键安装Redmine(转)

    1. 简介 对于一个新手,如果严格按照官方文档来安装redmine,我想会“疯”掉的.有没有一种简便的方法.有滴,那就是BitNami. BitNami提供redmine的一键安装程序,简单.易用.方 ...

  4. BitNami一键安装Redmine

    1. 简单介绍 对于一个新手,假设严格依照官方文档来安装redmine,我想会"疯"掉的.有没有一种简便的方法.有滴,那就是BitNami. BitNami提供redmine的一键 ...

  5. 一键安装Redmine

    群英汇·项目管理系统:http://www.ossxp.com/HelpCenter/00040_Redmine 其中包含中文说明及管理手册 一键安装下载:http://bitnami.org/sta ...

  6. 喵星之旅-狂奔的兔子-centos7一键安装redmine

    一.安装环境 CentOS-7-x86_64-DVD-1908.iso 二.获取安装文件 从官网获取,在下载页面提供了多种安装,最下方是一键安装版本,里面有两种选择,一个是安装包,一个是虚拟机硬盘文件 ...

  7. Windows 一键安装 Redmine 部署及配置

    Redmine的主要功能包括 添加和跟踪问题(或让您的团队完成). 使用Redmine内置的甘特图和日历计划和管理您的项目. 使用项目wiki和文档管理器来存储项目文档. 配置通知以保持有关问题状态和 ...

  8. redmine安装-BitNami 提供的一键安装程序

    redmine安装-BitNami 提供的一键安装程序          博客分类: REDMINE redmine安装redmine一键安装bitNami redmine  BitNami 提供re ...

  9. 一键安装gitlab7在rehl6.4上

    一键安装gitlab7在rehl6.4上 参考原文: http://blog.csdn.net/ubuntu64fan/article/details/38367579 1 关于gitlab7 无论如 ...

随机推荐

  1. mysql数据库连接池使用(二)实现自己的数据库连接池

    上一个章节,我们讲了xml文件的解析框架XMLConfiguration的使用,不懂的可以参考 Apache Commons Configuration读取xml配置具体使用. 这个章节主要实现自己的 ...

  2. 给EditText的drawableRight属性的图片设置点击事件

    这个方法是通用的,不仅仅适用于EditText,也适用于TextView.AutoCompleteTextView等控件. Google官方API并没有给出一个直接的方法用来设置右边图片的点击事件,所 ...

  3. Android开发学习之路--Content Provider之初体验

    天气说变就变,马上又变冷了,还好空气不错,阳光也不错,早起上班的车上的人也不多,公司来的同事和昨天一样一样的,可能明天会多一些吧,那就再来学习android吧.学了两个android的组件,这里学习下 ...

  4. Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.

    废了半天劲才解决... 就三步:菜单栏,Tools -> Adnroid -> enable ADB integration

  5. 【一天一道LeetCode】#344. Reverse String

    一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder's Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处 (一)题目 Write a ...

  6. 从浏览器直接转跳到APP具体页面---(魔窗)MagicWindow使用教程

    想要实现在网页里一键调到你APP的指定页面吗,好比打开 JD的一个商品的网页,从网页调到APP这个商品的页面.APP服务化, 使用魔窗SDK可以轻松实现! 老规矩:效果图奉上 1.注册魔窗账号,创建A ...

  7. [C++学习历程]中级部分 OpenGL第一个例子实现

    作者:sushengmiyan 本文地址:http://blog.csdn.net/sushengmiyan/article/details/21488231 环境:VS2010 准备工作: 1.下载 ...

  8. Nginx+PHP-FPM的域Socket配置方法

    1什么是域Socket "Unix domain socket 或者 IPCsocket 是一种终端,可以使同一台操作系统上的两个或多个进程进行数据通信.与管道相比,Unix domain ...

  9. 刀片服务器和磁盘阵列卡(RAID)技术---永和维护

    近期客户需要更换服务器,客户把买好的服务器送来了,原本感觉很小的一个服务器,可当我看到的时候是一个大个的又长又宽,类似机房服务器的那种,后来米老师给大致讲解一番:这个是刀片服务器. 刀片服务器是指在标 ...

  10. Android Wear开发

    Android Wear从2014年3月发布到现在已经从1.0发展到2.0(目前还没正式发布).其产品定位也发化了巨大变化,因为Android Wear 1.0通讯方式只有蓝牙,限定了系统,比较依赖手 ...