centos install redmine (项目管理工具)
- 安装环境:Centos、mysql、Ruby、Apache、Redmine
yum update
yum -y groupinstall "Development Tools"
yum -y install zip unzip libyaml-devel zlib zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel gcc ruby-devel gcc-c++ make postgresql-devel ImageMagick-devel sqlite-devel perl-LDAP mod_perl perl-Digest-SHA ImageMagick-devel ntp apr-devel apr-util-devel mlocate manlibxml2-devel libxslt-devel libffi-devel readline-devel
yum -y install httpd mysql mysql-server
service mysqld restart
mysql_secure_installation
关闭 selinux
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
sed -i "s/SELINUXTYPE=targeted/#SELINUXTYPE=targeted/g" /etc/selinux/config
开启防火墙的 80、443 端口,并重启防火墙
vi /etc/sysconfig/iptables
安装php、phpMyAdmin
yum -y install php php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php-soap
rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install phpmyadmin
vi /etc/httpd/conf.d/phpMyAdmin.conf
将 "Allow from 127.0.0.1" 替换为 "Allow from All"
vi /etc/phpMyAdmin/config.inc.php
将 $cfg['Servers'][$i]['auth_type'] = 'cookie' 替换为 $cfg['Servers'][$i]['auth_type'] = 'http';
安装 RVM
\curl -L https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
安装Ruby
rvm list known
rvm install 1.9.3
rvm use 1.9.3 --default
ruby -v
yum -y install rubygems
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
gem install rails
gem install passenger
passenger-install-apache2-module
vi /etc/httpd/conf.d/passenger.confLoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.-p551/gems/passenger-5.0./buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-1.9.-p551/gems/passenger-5.0.
PassengerDefaultRuby /usr/local/rvm/gems/ruby-1.9.-p551/wrappers/ruby
</IfModule>passenger.conf Code
重启 apache
设置Mysql
mysql -user=root -password=root_password_mysql
create database redmine_db character set utf8;
create user 'redmine_admin'@'localhost' identified by 'your_new_password';
grant all privileges on redmine_db.* to 'redmine_admin'@'localhost';
flush privileges;
quit;
给网站目录添加Redmine
mkdir -p /home/redmine.com/public_html
mkdir -p /home/redmine.com/logs
cd /home/redmine.com/public_html
wget http://www.redmine.org/releases/redmine-2.5.0.tar.gz
tar xvfz redmine-2.5.0.tar.gz
mv redmine-2.5.0 redmine
rm -rf redmine-2.5.0.tar.gz
cp -r redmine/. /home/redmine.com/public_html
rm -rf redmine
添加Redmine虚拟主机文件
vi /etc/httpd/conf.d/vhost.conf<VirtualHost *:>
ServerAdmin mycheryhr@gmail.com
ServerName redmine.com
ServerAlias www.redmine.com *.redmine.com
DocumentRoot /home/redmine.com/public_html/public/
ErrorLog /home/redmine.com/logs/error.log
CustomLog /home/redmine.com/logs/access.log combined
<Directory "/home/redmine.com/public_html/public/">
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>redmine.conf Code
修改Redmine数据库连接信息
cd /home/redmine.com/public_html/config
cp database.yml.example database.yml
vi database.yml
初始化 Rails
cd /home/redmine.com/public_html
gem install bundler
bundle install
rake generate_secret_token
建立 Database schema objects,加入預設資料
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
chmod -R 777 /home/redmine.com/public_html
chown -R apache:apache /home/redmine.com/public_html
激活Activate FCGI
cd /home/redmine.com/public_html/public
mkdir plugin_assets
cp dispatch.fcgi.example dispatch.fcgi
cp htaccess.fcgi.example .htaccess
设置Apache and FastCGI
cd /home/redmine.com/public_html/
rpm --import https://fedoraproject.org/static/0608B895.txt
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum -y install mod_fcgid
rm -rf epel-release-6-8.noarch.rpm
创建文件目录
mkdir -p /opt/redmine/files
chown -R apache:apache /opt/redmine
cd /home/redmine.com/public_html/config
cp configuration.yml.example configuration.yml
vi configuration.yml添加如下配置:
attachments_storage_path : /opt/redmine/files - 建议参考的安装文档
http://www.redmine.org/projects/redmine/wiki/Install_Redmine_25x_on_Centos_65_complete
http://blog.csdn.net/win_lin/article/details/8514333
http://blog.tonycube.com/2013/11/redmine-centos-apache-ruby-on-rails.html
- 遇到过的问题,建议参考下面的几个解决方法
- 迁移方法
技巧
A、默认需要加上端口3000才可以访问,解决方法在vhost.conf中添加:
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
B、发送邮件
http://blog.csdn.net/maktub_haixue/article/details/39394111
http://www.vipzhicheng.com/blog/2014/04/09/install-redmine-on-centos/
#!/bin/bash
# Modify it to your configuration
DIR=/var/www/html/redmine/ # Start Redmine in daemon mode.
start(){
cd $DIR
ruby script/rails server -d -e production
}
# Stop Redmine daemon
stop(){
RUBYPID=`ps aux | grep "ruby script/rails" | grep -v grep | awk '{print $2}'`
if [ "x$RUBYPID" != "x" ]; then
kill - $RUBYPID
fi
}
# Check if Redmine is running
status(){
RUBYPID=`ps aux | grep "ruby script/rails" | grep -v grep | awk '{print $2}'`
if [ "x$RUBYPID" = "x" ]; then
echo "* Redmine is not running"
else
echo "* Redmine is running"
fi
} case "$1" in
start)
start
status
;;
stop)
stop
sleep
status
;;
status)
status
;;
restart|force-reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload|status}"
exit
esac
centos install redmine (项目管理工具)的更多相关文章
- Redmine 项目管理工具----完全攻略
摘要: 此篇博客涉及 安装,插件修改,插件安装,代码显示,中文乱码,SVN配置等内容,几乎覆盖所有redmine基本功能. 本机环境: Redmine 版本: 3.2.0 本机环境: win7 64位 ...
- Linux下安装项目管理工具Redmine
http://www.redmine.org.cn/download Linux下安装项目管理工具Redmine1.Ruby安装Ruby on Rails网站推荐使用1.8.7版. 点击(此处)折叠或 ...
- 项目管理工具 Redmine 安装试用手记
原文:项目管理工具 Redmine 安装试用手记 项目管理工具 Redmine 安装试用手记 分类: Redmine2009-06-01 10:12 996人阅读 评论(1) 收藏 举报 项目管理工具 ...
- 在项目管理工具Redmine中使用SubVersion进行版本管理
原文:在项目管理工具Redmine中使用SubVersion进行版本管理 在项目管理工具Redmine中使用SubVersion进行版本管理 分类: Redmine2009-06-01 10:11 5 ...
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(四) -- 安装bitbucket 5.7.0
[原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(四) -- 安装bitbucket 5.7.0 安装Bitbucket的教程, 网上能找见的不多, ...
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(一) -- 安装jdk(含jre)及 MySql 5.6.39
[原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(一) -- 安装jdk(含jre)及 MySql 5.6.39 回老家已经有一段时间了, 四五线 ...
- linux下一步一步安装禅道项目管理工具
linux下一步一步安装禅道项目管理工具 因为禅道官网的安装教程实在是太简陋了,所以记录在此. 1.安装apache服务 archlinux下直接 sudo pacman -S apache ubun ...
- 15款提高工作效率的 Web 项目管理工具
在今天的快节奏的商业世界里,能够通过计划.组织.和管理资源池以及评估开发资源的模式来管理一个项目,是一个很艰巨的任务. 有很多现成的项目管理软件来帮助减轻项目管理的负担,并且他们几乎覆盖了所有类型的业 ...
- IT项目管理工具总结(转载)
以前用过一个cs版的忘记叫啥名了,还用个禅道,感觉一般“5. 测试管理: 项目软件缺陷Bug状态跟踪”在公司内部自己测试或者试用期上线后后期维护阶段用的多,有的公司单独做个系统让用户提问题来修改,也是 ...
随机推荐
- 1000/problem/A
传送门: [http://codeforces.com/contest/1000/problem/A] 题意: 一个比赛颁奖,要准备T-Shirt给获奖者,但有的去年获奖过,衣服尺寸可以不改,有的需要 ...
- PS制作墙壁上海报卷页图片效果
1.首先,打开PS,新建合适的画布. 2.为了使背景具有质感,执行滤镜—滤镜库—纹理化,具体参数按你的感觉来. 3.新建画布“图层1”,为了方便观察,填充为灰色画布,ctrl+t适当缩小画布大小,如图 ...
- Django ORM 反向查询
一/一对多反向查询 先定义两个模型,一个是A,一个是B,是一对多的类型. class A(models.Model): name= models.CharField('名称', max_lengt ...
- 使用队列queue实现一个简单的生产者消费者模型
一.生产者消费者模型 我们去超市商店等地购买商品时,我们大部分人都会说自己是消费者,而超市的各大供货商.工厂等,自然而然地也就成了我们的生产者.如此一来,生产者有了,消费者也有了,那么将二者联系起来的 ...
- Django 2.0 学习
Django django是基于MTV结构的WEB框架 Model 数据库操作 Template 模版文件 View 业务处理 在Python中安装django 2.0 1 直接安装 pip inst ...
- python_format格式化输出、while else、逻辑运算符、编码初识
1.格式化输出 .%d %s 格式化输出:% 占位符,d 表示替换整型数,s表示要替换字符串. name = input('请输入名字:') age = input('请输入年龄:') sex = ...
- 【问题解决方案】Dev C++ 无法调试的问题与解决
听翁恺老师课的时候用到一个叫DevC++的编辑器. 学到调试部分的时候,老师的没问题我的报错.我?? 试一试网上查到的方法: 工具 --> 编译选项 --> 代码生成/优化 --> ...
- windows中dir命令
最近想用dos命令打印指定目录下的所有文件夹的完整路径.最终发现可用dir命令来实现.在此学习下dir的各项命令. 32位win7系统上,打印帮助文档. D:\test>dir /? 显示目录中 ...
- java编程规范(持续更新)
1:非空判断 错误例子: if(user.getUserName().equals("hollis")){ } 这段代码极有可能在实际运行的时候跑出NullPointerExcep ...
- [转帖]linux sed命令
linux sed命令就是这么简单 https://www.cnblogs.com/wangqiguo/p/6718512.html 用到的最多的就是一个sed -i 's/nn/mm/' 的命令了. ...