在ubuntu下安装好redmine后,创建并打开文件 vi /etc/init.d/redmine 内容如下
#!/bin/sh
#
# description: Auto-starts redmine
# processname: redmine
cd /usr/local/share/software/redmine-2.5.1 && ruby script/rails server webrick -e production
修改文件权限, 添加执行权限
chmod 755 /etc/init.d/redmine
安装 sudo apt-get install sysv-rc-conf
执行sudo sysv-rc-conf 选中redmine 2, 3, 4, 5