????7.????redmine???????.???????????mysql.???????????????mysql????????????????????????????????????????????????mysql.
???????mysql?????????.
????mysql> create database redmine;
???????mysql???
????GRANT ALL PRIVILEGES ON redmine.* TO '???redmine?????????' IDENTIFIED BY '????';???:?????????redmine??????????.???????root??????????????????mysql?????????????.
???????????Redmine??database.yml
????cp config/database.yml.example config/database.yml         ????redmine?????????????????????????????????????.?????????????????????????????.
????cat database.yum              ????????????????????????????У??????????????????   
????production:
????adapter: mysql2
????database: redmine
????host: ?????????.??????????127.0.0.1????localhost  ?????????????????????????????????.????????????????????.
????username: ??????
????password: "???????"
????encoding: utf8           ??????utf8
??????????????
????RAILS_ENV=production bundleexecrake db:migrate
??????????????
????RAILS_ENV=production bundleexecrake redmine:load_default_data
??????????????mysql??????????????????.
?????????????:???iptables????????3000??????????.???????????????iptables????.?????????????????????.
?????????redmine??????????в?????.
????????:bundleexecrails server webrick -e production -b 0.0.0.0       ???????????. ????????????????0.0.0.0?????????????? ????????κθ??. ????????????????ip???????redmine??.
??????г???????????
????=> Booting WEBrick
????=> Rails 4.2.4 application starting in production on http://0.0.0.0:3000
????=> Run `rails server -h` for more startup options
????=> Ctrl-C to shutdown server
????[2016-03-24 22:45:24] INFO  WEBrick 1.3.1
????[2016-03-24 22:45:24] INFO  ruby 2.2.3 (2015-08-18) [x86_64-linux]
????[2016-03-24 22:45:24] INFO  WEBrick::HTTPServer#start: pid=22175 port=3000
?????????????????Ctrl+C??shutdown????????????.??????.???????????????棬??????:warning: duplicated key at line 466 ignored: "inodot"  ???ù????????????????:-)
?????????????:????????ip???+3000????   ??????111.111.1.1:3000   ???????????????????:

?????????????????????????????.??????????????.???????????????.?????????????????????????????????admin
????ok  ???shutdown????????????? ????????.????????nginx??!
???????passenger
????gem install passenger
????passenger-install-nginx-module
????passenger-install-nginx-module?????????????????????nginx????????????????????????????????nginx
????????redmine??nginx??html??
????cp../redmine-3.1.1/usr/local/nginx/html/redmine
???????vi????nginx.conf?????server?????location ?
????4location / {
????root   html/redmine/public;
????index  index.html index.htm;
????}
???????nginx
????/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf    ????????????nginx  sbin??????nginx.conf????????????????????????滻????.
??????80???.????????.?????????????.???80?????????????????????С?:-(
???????????????????????????webrick?????????????.???о??????.
???????????????????????.????????????????????????Щ????.?????.?Щ???????????????incorrect error ?????log???.??log????м??.???google????????????.????????????.????????????????3000???????????ù?????????.????????3000?????.??????????????????????????.
???????????????????.????????ж?redmine??configuration??????????????nginx???????????.?????configuration????Ч.?????3000??????????Ч.?????.?????e?
??????????redmine??????????????????.
????cd??redmine??conf??????в???????????configuration.yml.example?????.???????cp ???cat??.????????WinSCP??????????.?????.?????:

???????????????????.??????????????:

????Default??????????.???????????????????e? ???????滹?и?production???????????Default.??????????????.??????????????.?????

????????????Default?????????????????????.