#安装数据库
sudo apt-get install mysql-server
#安装redmine
sudo apt-get install redmine redmine-mysql
#安装thin服务
sudo apt-get install thin
#生成配置文件
sudo thin config -C /etc/thin2.0/redmine.yml -c /usr/share/redmine/ --servers 2 -e production -a 127.0.0.1 -p 3000
#或者看是etc下面的具体目录
sudo thin config -C /etc/thin/redmine.yml -c /usr/share/redmine/ --servers 2 -e production -a 127.0.0.1 -p 3000
#重启thin如果打印出启动成功没有错误提示就OK了
sudo thin start -C /etc/thin2.0/redmine.yml
#安装nginx
sudo apt-get install nginx
#nginx配置
server {
listen 80;
server_name 127.0.0.1;
root /usr/share/redmine/public/;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
安装redmine thin nginx
最新推荐文章于 2024-05-28 10:58:58 发布