|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!git
确保已装置了依附的包:
[plain]viewplaincopyhttp://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf
- yuminstallcurl
- yuminstallcurl-devel
- yuminstallzlib-devel
- yuminstallopenssl-devel
- yuminstallperl
- yuminstallcpio
- yuminstallexpat-devel
- yuminstallgettext-devel
下载git包并编译装置:
[plain]viewplaincopyhttp://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf
- wgethttp://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
- tarxzvfgit-latest.tar.gz
- cdgit-2011-11-30#你的目次大概不是这个
- autoconf
- ./configure
- make
- sudomakeinstall
检察git版本:
[plain]viewplaincopyhttp://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf
1.ruby
[plain]viewplaincopyhttp://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf
2.rails
[plain]viewplaincopyhttp://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf
3.mysql
[plain]viewplaincopyhttp://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf
- [root@xiaoluo~]#yuminstall-ymysql-servermysqlmysql-devel
- [root@xiaoluo~]#rpm-qimysql-server
- [root@xiaoluo~]#servicemysqldstart
- [root@xiaoluo~]#servicemysqldrestart
- [root@xiaoluo~]#chkconfig--list|grepmysqld
- mysqld0:封闭1:封闭2:封闭3:封闭4:封闭5:封闭6:封闭
- [root@xiaoluo~]#chkconfigmysqldon
- [root@xiaoluo~]#chkconfig--list|grepmysql
- mysqld0:封闭1:封闭2:启用3:启用4:启用5:启用6:封闭
- [root@xiaoluo~]#mysqladmin-urootpasswordroot //经由过程该下令给root账号设置暗码为root
4.Redmine
1)mysql
- CREATEDATABASEredmineCHARACTERSETutf8;CREATEUSERredmine@localhostIDENTIFIEDBYmy_password;GRANTALLPRIVILEGESONredmine.*TOredmine@localhost;
复制代码 2)Databaseconnectionconfiguration
ExampleforaMySQLdatabaseusingruby1.9(adaptermustbesettomysql2):- production:adapter:mysql2database:redminehost:localhostusername:redminepassword:my_password
复制代码 3)Dependenciesinstallation
- bundleinstall--withoutdevelopmenttest
复制代码
IfImageMagickisnotinstalledonyoursystem,youshouldskiptheinstallationofthermagickgemusing:- bundleinstall--withoutdevelopmenttestrmagick
复制代码 4)Sessionstoresecretgeneration
- rakegenerate_secret_token
复制代码 5)Databaseschemaobjectscreation
- RAILS_ENV=productionrakedb:migrate
复制代码 6)Databasedefaultdataset
- RAILS_ENV=productionrakeredmine:load_default_data
复制代码 7)Filesystempermissions
Theuseraccountrunningtheapplicationmusthavewritepermissiononthefollowingsubdirectories:
- files(storageofattachments)
- log(applicationlogfileproduction.log)
- tmpandtmp/pdf(createtheseonesifnotpresent,usedtogeneratePDFdocumentsamongotherthings)
- public/plugin_assets(assetsofplugins)
E.g.,assumingyouruntheapplicationwitharedmineuseraccount:- mkdir-ptmptmp/pdfpublic/plugin_assetssudochown-Rredmine:redminefileslogtmppublic/plugin_assetssudochmod-R755fileslogtmppublic/plugin_assets
复制代码 8)Testtheinstallation
- rubyscript/railsserverwebrick-eproduction
复制代码
Usedefaultadministratoraccounttologin:
- login:admin
- password:admin
YoucangotoAdministrationmenuandchooseSettingstomodifymostoftheapplicationsettings.
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们! |
|