分享

redmine项目管理

 终极妖神 2015-03-30

Redmine自带lamp环境和svn

RHEL6.4下一键安装 Redmine

网址;https:///stack/redmine

安装包名bitnami-redmine-2.5.2-3-linux-x64-installer.run 

卸载bitnami-redmine

/opt/redmine-2.5.2-3/uninstall

 

安装过程如下:

给安装包加执行的权限

[root@vm-redmine ~]# chmod +x bitnami-redmine-2.5.2-3-linux-x64-installer.run 

执行一键安装包

[root@vm-redmine ~]# ./bitnami-redmine-2.5.2-3-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??

[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-3]: 

 

----------------------------------------------------------------------------

创建管理员帐户

 

Bitnami Redmine Stack admin 用户创建

 

您的真实姓名 [User Name]: (名字自己起;我用的公司名)

 

Email地址 [user@example.com]: redmine@公司名.com

 

登录 [user]: master

 

密码 :

请确认密码 :

----------------------------------------------------------------------------

Web服务器端口(这里的80口是被占用的;所以让你自己选择端口)

 

输入Apache服务器捆绑监听的缺省端口。

 

Apache Web 服务端口 [80]: 8010

 

----------------------------------------------------------------------------

MySQL信息

 

请输入MySQL数据库信息

 

MySQL服务端口 [3306]: 3307

 

----------------------------------------------------------------------------

缺省数据配置语言

 

选择缺省数据配置语言:

 

[1] 保加利亚语

[2] 捷克语

[3] 德语

[4] 英语

[5] 西班牙

[6] 法语

[7] 希伯来语

[8] 意大利语

[9] 日语

[10] 朝鲜语

[11] 荷兰语

[12] 波兰语

[13] 葡萄牙语

[14] 葡萄牙语/巴西

[15] 罗马尼亚语

[16] 俄语

[17] 塞尔维亚语

[18] 瑞典语

[19] 中文

[20] 中文/繁体

请选择选项 [19] : 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.

 

用户名 []: redmine@公司名.com

 

密码 :

重新输入 :

SMTP 主机 []: mail.公司名.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:8010

按 [Enter] 继续:

 

开启redmine:重启服务

[root@R720-198 home]# /opt/redmine-2.5.2-3/ctlscript.sh restart

Syntax OK

/opt/redmine-2.5.2-3/subversion/scripts/ctl.sh : subversion stopped

Syntax OK

/opt/redmine-2.5.2-3/apache2/scripts/ctl.sh : httpd stopped

/opt/redmine-2.5.2-3/mysql/scripts/ctl.sh : mysql stopped

150324 17:00:53 mysqld_safe Logging to '/opt/redmine-2.5.2-3/mysql/data/mysqld.log'.

150324 17:00:53 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-2.5.2-3/mysql/data

/opt/redmine-2.5.2-3/mysql/scripts/ctl.sh : mysql  started at port 3307

Syntax OK

/opt/redmine-2.5.2-3/apache2/scripts/ctl.sh : httpd started at port 8010

/opt/redmine-2.5.2-3/subversion/scripts/ctl.sh : subversion started at port 3690

 

查看一下配置文件: 

/opt/redmine-2.5.2-3/apps/redmine/htdocs/config/configuration.yml

 

访问redmine

http://192.168.117.127:8010/

 

####################################################################################################################

 

[root@R720-198 home]# vim /opt/redmine-2.5.2-3/apps/redmine/htdocs/config/configuration.yml

遇到问题;无法发邮件

一;邮箱问题;真正邮箱redmine@jiayougo.com

二;配置文件问题;1.0.1版本之后配置文件

default:

  # Outgoing emails configuration (see examples above)

  email_delivery:

    delivery_method: :smtp

    smtp_settings:

 

      address: "mail.公司名.com"

      port: 25

      domain: "公司名.com"

      authentication: :login

      user_name: "redmine@公司名.com"

      password: "******"

 

开启redmine:重启服务

[root@R720-198 config]# /opt/redmine-2.5.2-3/ctlscript.sh restart

/opt/redmine-2.5.2-3/subversion/scripts/ctl.sh : subversion stopped

Syntax OK

/opt/redmine-2.5.2-3/apache2/scripts/ctl.sh : httpd stopped

/opt/redmine-2.5.2-3/mysql/scripts/ctl.sh : mysql stopped

150324 17:05:37 mysqld_safe Logging to '/opt/redmine-2.5.2-3/mysql/data/mysqld.log'.

150324 17:05:37 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-2.5.2-3/mysql/data

/opt/redmine-2.5.2-3/mysql/scripts/ctl.sh : mysql  started at port 3307

Syntax OK

/opt/redmine-2.5.2-3/apache2/scripts/ctl.sh : httpd started at port 8010

/opt/redmine-2.5.2-3/subversion/scripts/ctl.sh : subversion started at port 3690

 

 

 

 

httpd端口8010

mysql端口3307

 

/opt/redmine-2.5.2-3/ctlscript.sh stop 关闭redmine的所有有关组件(mysql、Apache、svn)

 

###################################################################################################################

直接登录

/opt/redmine-2.5.2-3/mysql/bin/mysql -uroot -p123456

 

将120的mysql库导到116的mysql上;用navicat premium工具

在两台mysql的配置文件上

#bind-address=127.0.0.1 要注释掉(这句话是只能在本机登录)

#skip-grant-tables 无视密码登录

在两台mysql上配置命令

建立zhangyu用户密码为hhhhhh;%所有IP

GRANT ALL PRIVILEGES ON *.* TO 'zhangyu'@'%' IDENTIFIED BY 'hhhhhh' WITH GRANT OPTION;

刷新权限

flush privileges;

查看用户名密码

select user,host,password from mysql.user;

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

下面是修改端口;

遇见问题;一键安装redmine后;默认端口是80和3306;想修改端口;

修改五个配置文件;

 

/opt/redmine-2.5.2-3/apps/redmine/conf/httpd-app.conf

里面有个passengerprestart http://127.0.0.1:8022的字样;

/opt/redmine-2.5.2-3/apps/redmine/conf/httpd-vhosts.conf

里面有个virtualhost *:8022字样;

/opt/redmine-2.5.2-3/apache2/scripts/ctl.sh

里面有个httpd started at port 8023字样

/opt/redmine-2.5.2-3/apache2/conf/bitnami/bitnami.conf

里有virtualhost _default_:8022字样

/opt/redmine-2.5.2-3/apache2/conf/httpd.conf 这个是修改端口

apache2配置文件;第52行和209行是端口8022;

 

将端口改成8011;访问redmine

http://192.168.221.23:8011

 


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多