Linux使用bitnami安裝redmine,bitnamiredmine

來源:互聯網
上載者:User

Linux使用bitnami安裝redmine,bitnamiredmine

 這是我第一篇部落格,如果有什麼寫的不好還請多包涵

有一次工作有機會讓我來接觸redmine,剛開始我嘗試手動安裝,結果安裝了N天。都沒裝上。後來看到了bitnami安裝比較方便,可是因為伺服器記憶體不夠的緣故,也耽誤了幾天。不過最後還是安裝上了,所以我決定還是記錄在部落格上。希望對能對大家有協助

1.登陸網站

https://bitnami.com/stack/redmine/installer

 

下載

2.我是使用的scp 從本地上傳到自己的伺服器

scp /本機目錄/本機檔案 root@ip:/目標伺服器路徑

 

通過ssh登陸伺服器

檢查自己伺服器是否安裝了ruby

 

ruby -v

 

如果沒有ruby 登陸ruby官網

https://www.ruby-lang.org/en/downloads/下載安裝ruby目前最高版本是2.4.1
wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
tar xzvf ruby-2.4.1.tar.gz

 

 

下載解壓後 增加環境變數 
vi /etc/profile

 

 export PATH=/usr/local/ruby/ruby-2.4.1/:$PATH
source /etc/profile
  安裝gcc
yum install gcc

進入ruby安裝目錄

./configure  makesudo make install

 

 

進入bitnami下載目錄

啟動安裝程式

./bitnami-redmine-3.3.3-0-linux-x64-installer.run

 

其實我安裝的時候不像網路中的文章那麼順利

比如這個錯誤

Abort,Retry,Ignore?[A/r/i]

Installing 0% ______________ 50% ______________ 100% #######################Unable to create symbolic link /usr/local/bitnami/ruby/lib/ruby/gems/2.1.0/gems/ffi-1.9.0/ext/ffi_c/libffi-x86_64-linux/include/ffitarget.h -> ../../libffi/src/x86/ffitarget.hAbort, Retry, Ignore ? [A/r/i]^C

 

我尋找了N天 有說磁碟滿了的,可是我那個是新機器沒裝過別的 不會磁碟滿了

我想對你說的是,如果你的伺服器記憶體是1G,就換機器吧,換個高配的。此處有淚~~~~

接下來 我又遇到如此的錯誤

 

 Installing 0% ______________ 50% ______________ 100% ########################################Warning: Problem running post-install step. Installation may not completecorrectly Unknown error while running chown -R root:subversion/usr/local/bitnami/subversion/tmpPress [Enter] to continue:Warning: Problem running post-install step. Installation may not completecorrectly Unknown error while running /usr/local/bitnami/ruby/bin/ruby -e"require('digest/sha1'); puts(Digest::SHA1.hexdigest('****'))"Press [Enter] to continue:Warning: Problem running post-install step. Installation may not completecorrectly Error creating dynamic link /usr/local/bitnami/apps/redmine/bnconfig/usr/local/bitnami/apps/redmine/updateipPress [Enter] to continue:

 

我當時是把ruby更新,取消了subversion安裝

 

問題解決,不過上面我提到了ruby 下載 與安裝,應該不會出現這個問題

還有一個問題如下

Installing 0% ______________ 50% ______________ 100% ########################################Error: Error running /usr/local/bitnami/mysql/scripts/myscript.sh/usr/local/bitnami/mysql "****": FATAL ERROR: please install the following Perlmodules before executing scripts/mysql_install_db:Data::DumperLogging to '/usr/local/bitnami/mysql/data/mysqld.log'.ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/usr/local/bitnami/mysql/tmp/mysql.sock' (2)ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/usr/local/bitnami/mysql/tmp/mysql.sock' (2)ERROR 2002 (HY000): Can't connect to local MySQL server through socket

需要mysql依賴

 
yum -y install autoconf

問題解決

接下來 再次安裝

./bitnami-redmine-3.3.3-0-linux-x64-installer.run

當你看到

當你看到這些字,恭喜你,你安裝成功了

訪問你的伺服器 的http://ip:port 使用者名稱和密碼是你安裝過程中設定的使用者名稱和密碼

 

 

 好了,祝君好運。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.