vi /etc/init.d/redmine
添加
cd redmine-3.4.5 && ruby bin/rails server mongrel -e production -b 0.0.0.0 -p 3000
修改文件权限, 添加执行权限
chmod 755 /etc/init.d/redmine
安装 sudo apt-get install sysv-rc-conf
执行sudo sysv-rc-conf 选中redmine 2, 3, 4, 5
vi /etc/init.d/redmine
添加
cd redmine-3.4.5 && ruby bin/rails server mongrel -e production -b 0.0.0.0 -p 3000
修改文件权限, 添加执行权限
chmod 755 /etc/init.d/redmine
安装 sudo apt-get install sysv-rc-conf
执行sudo sysv-rc-conf 选中redmine 2, 3, 4, 5