Centos 7 使用Apache部署Redmine。
来源:互联网 发布:网页传奇游戏源码 编辑:程序博客网 时间:2024/05/29 19:46
1. Redmine部署到本机。
(1)安装ruby环境。
curl -L https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
rvm list known
rvm install 2.2
(2)安装mariadb
yum install mariadb mariadb* -y
(3)安装Redmine
下载redmine-3.1.1,解压,并放入/opt目录
cd /opt/redmine-3.1.1/config
bundle install (可能会出现依赖缺失的错误,使用yum安装依赖即可)
数据库配置和redmine剩余配置参照http://www.redmine.org.cn/index.php/news/v_16_34.html
(4)Apache配置(重点)
yum -y install httpd
/bin/systemctl restart httpd.service
浏览器地址栏输入localhost,应该能看到测试页面。
cd /opt/redmine-3.1.1/public
cp dispatch.fcgi.example dispatch.fcgi
cp htaccess.fcgi.example htaccess.fcgi
chmod 755 dispatch.fcgi
cd /etc/httpd/conf.d
新建redmine.conf,内容如下:
LoadModule passenger_module /home/richard/.rvm/gems/ruby-2.2.3/gems/passenger-5.0.20/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /home/richard/.rvm/gems/ruby-2.2.3/gems/passenger-5.0.20
PassengerDefaultRuby /home/richard/.rvm/gems/ruby-2.2.3/wrappers/ruby
</IfModule>
<VirtualHost *:3000>
ServerName 192.168.3.200
DocumentRoot /opt/redmine-3.1.1/public
ErrorLog "/opt/redmine-3.1.1/wwwlogs/error.log"
CustomLog "/opt/redmine-3.1.1/wwwlogs/access.log" common
<Directory /opt/redmine-3.1.1/public>
Options FollowSymlinks
AllowOverride none
Require all granted
</Directory>
</VirtualHost>
vim /etc/httpd/conf/httpd.conf
添加一行:Listen 192.168.3.200:3000
/bin/systemctl restart httpd.service
- Centos 7 使用Apache部署Redmine。
- 在apache上部署redmine
- CentOS 7 + Apache + mod_wsgi 部署Django项目
- CentOS 7 下使用 MySQL 5.7 + PHP 7 + Apache 部署 Nextcloud
- CentOS下配置Ruby on Rails并部署Redmine
- CentOS apache+Tomcat集群部署
- CentOS Apache 部署静态网站
- centos 7 bitnami redmine 环境搭建
- Linux(CentOS 7)上面部署Apache HTTP服务器
- CentOS 7使用Kolla部署OpenStack
- 阿里云部署Docker(8)----安装和使用redmine
- Windows基于Redmine部署
- Windows部署Redmine记
- Redmine详细部署文档
- redmine安装部署
- redmine安装部署
- Windows部署Redmine记
- Redmine使用
- 完美解决IE(IE6/IE7/IE8)不兼容HTML5标签的方法
- msc和gcc编译器的内置函数(Compiler Intrinsics/Built-in Functions)
- UISegmentControl
- 7.Invert Binary Tree
- 一些关于C++ 内存管理的比较好的文章,代码
- Centos 7 使用Apache部署Redmine。
- Linux Kernel 2.6.3
- HDOJ 题目3265 Posters(线段树+扫描线)
- PHP开发时路由中GET方法和POST方法的区别
- Python 常用处理
- x86_64 函数调用约定
- MySQL学习笔记9:连接查询
- socket 编程下 inet_ntoa() 函数的使用与注意事项
- DZNSegmentedControl