????redmine????????????б????
????1??redmine?汾??????2?????????
????2??ruby???????????????
????3??mysql2?????????
????4??redmine web???????
?????????????????????????
????1??redmine?汾??????2?????????
????redmine?汾???????ruby???rails???????????????汾???2??????????
??????????ruby2.2??rails4.2?????£?redmine?汾?2.3.stable?????????????
???????????????redmine??汾
????http://www.redmine.org/projects/redmine/wiki/Download
????2??ruby???????????????
????ruby?????????????????°??????
???????????????ruby?????ruby???
????gem sources -l # ??????
????gem sources -a http://ruby.taobao.org # ????????ruby?
????gem sources -r https://rubygems.org/ # ?????????ruby?
????gem install rails # ??????????????rails????
??????????redmine???????????GenFile????
????cd /usr/local/redmine-3.0.0
????vim Gemfile # ?????????У??????????ruby?
????source 'https://ruby.taobao.org'
????3??mysql2?????????
??????gem instlal mysql2?????????????mysql.h????????
??????????????????
/usr/local/rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150312-38008-rlgqip.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Using mysql_config at /usr/bin/mysql_config
-----
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason?? probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
extconf failed?? exit code 1
????????????mysql-devel?汾??????μ?????????
????su root
????yum install mysql-devel
????4??redmine web???????
????redmine?????????????????????http://192.168.10.107:3000
??????????????????????telnet 192.168.10.107 3000????????
????????????
????192.168.10.107??????????????????IP??redmine?????????locahost????3000
????a??????????????????3000????
????b??localhost??????hosts????/etc/hosts???ɡ?
????redmine 41271 1 0 20:24 ? 00:00:00 ruby ./rails server -e production -d
????netstat -alnp|grep 41271 # ??pid??????????
??????????????б????
????tcp 0 0 192.168.10.107:3000 0.0.0.0:* LISTEN 41271/ruby
????tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 41271/ruby
????tcp 0 0 ::1:3000 :::* LISTEN 41271/ruby
????unix 3 [ ] STREAM CONNECTED 131877 41271/ruby
?????????????η???????????????redmine web???????