Unsupported URL protocol

If you got this error it means that rugged/libgit2 has not been compiled with SSH support.

Install missing dependencies then :

root# su - redmine

redmine$ cd REDMINE_ROOT
redmine$ bundle clean --force
redmine$ bundle install --without development test
redmine$ gem uninstall rugged
redmine$ gem install rugged -v='0.22.2'
如果日志报如下错误:SSH KEYs 有关的
check your SSH keys (path, permissions) or your Git user
检测sshkey/密钥文件权限,必要时赋予 chmod 700 权限
redmine_gitolite_admin_id_rsa 权限 700  ;//chmod 700 redmine_gitolite_admin
 
      
 六 安装niginx
1、gem install passenger
2、 passenger-install-nginx-modul
修改配置文件
   user  redmine;
worker_processes  1;

http {
    passenger_root /usr/local/ruby/lib/ruby/gems/2.3.0/gems/passenger-5.0.30;
    passenger_ruby /usr/local/ruby/bin/ruby;
    passenger_app_env production;
    passenger_default_user redmine;
    passenger_user redmine;

     server {
        listen       80;
        server_name  localhost;
        passenger_enabled on;      

        location / {
           root   /app/redmine-3.3.1/public;
           #root html;
            index  index.html index.htm;
        }
   
由于1024以下端口需要root 权限才能启动
因此,必须以root 权限启动nginx
3.开机启动
 vi  /lib/systemd/system/nginx.service
内容如下
[Unit]

Description=The nginx HTTP and reverse proxy server
After=network.target remote-fs.target nss-lookup.target


[Service]
Type=forking
PIDFile=
/app/redmine-3.3.0/nginx/logs/nginx.pid
# Nginx will fail to start if /run/nginx.pid already exists but has the wrong
# SELinux context. This might happen when running `nginx -t` from the cmdline.
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621
ExecStartPre=/usr/bin/rm -f /app/redmine-3.3.0/nginx/logs/nginx.pid
ExecStartPre=/app/redmine-3.3.0/nginx/sbin/nginx -t
ExecStart=/app/redmine-3.3.0/nginx/sbin/nginx
ExecStop=/app/redmine-3.3.0/nginx/sbin/nginx -s stop
ExecReload=/app/redmine-3.3.0/nginx/sbin/nginx -s reload
KillMode=process
KillSignal=SIGQUIT
TimeoutStopSec=5
PrivateTmp=true

[Install]
WantedBy=multi-user.target


wq 退出


systemctl enable nginx.service

systemctl start nginx.service

查看 网络连接

netstat -lntp|grep nginx