欢迎来到天天文库
浏览记录
ID:11462491
大小:115.50 KB
页数:8页
时间:2018-07-12
《centos下部署redmine项目管理系统》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、CentOS下部署Redmine项目管理系统环境需求:CentOS6.2+ruby1.9.2+rails3.2.6+redmine2.0.3+rubygems1.3.7(版本很重要)1、关掉selinux和iptablessed-is/=enforcing/=disabled/g/etc/selinux/configchkconfig--level35iptablesoffchkconfig--level35ip6tablesoff2、安装相关的rpm包yum-yinstallvim-enhancedwgetntpgccgcc-c++makeautomakeautoco
2、nfmysql-devellibxml2-develcurl-develpatchlibxslt-devellibxsltcyrus-sasl-developensshopenssh-clientssubversionpcre-develhttpd3、安装ruby-1.9.2tarzxvfruby-1.9.2-p290.tar.gzcdruby-1.9.2-p290/./configuremake&&makeinstallcdext/opensslrubyextconf.rbmake&&makeinstallruby-v(检查安装版本)#ruby1.9.2p290(2011
3、-07-09revision32553)[x86_64-linux]4、安装rails3.2.6geminstallrack(可能需要)geminstallrails-v=3.2.65、安装mysql数据库yum-yinstallmysql-servermv/etc/my.cnf/etc/my.cnf.bakcp/usr/share/mysql/my-huge.cnf/etc/my.cnfchown-Rmysql.mysql/var/lib/mysql/usr/bin/mysql_install_db(执行后可能会存在问题,也可能是权限问题无法启动chown-Rmysql.
4、mysql/var/lib/mysql/)更改mysql默认字符集my.cnf文件中找到客户端配置[client]在下面添加default-character-set=utf8默认字符集为utf8在找到[mysqld]添加default-character-set=utf8默认字符集为utf8init_connect='SETNAMESutf8'(设定连接mysql数据库时使用utf8编码,以让mysql数据库为utf8运行)修改好后,重新启动mysql即可,查询一下showvariableslike'character%';servicemysqldstart/usr/b
5、in/mysqladmin-urootpassword'123456'/usr/bin/mysql-uroot-p123456>createdatabaseredminecharactersetutf8;>grantallprivilegesonredmine.*to'redmine'@'localhost'identifiedby'redmine';>FLUSHPRIVILEGES;>quit6、安装redminewgethttp://rubyforge.org/frs/download.php/76259/redmine-2.0.3.tar.gztarzxvfredmi
6、ne-2.0.3.tar.gzcp-rfredmine-2.0.3/var/www/html/redminecd/var/www/html/redmine/config/cpdatabase.yml.exampledatabase.ymlvimdatabase.ymlproduction:adapter:mysql2database:redminehost:localhostusername:redminepassword:redmineencoding:utf8 ##注:文件内的adapter项要写mysql2,否则会报RuntimeError:Pleaseinstal
7、lthemysqladapter:`geminstallactiverecord-mysql-adapter`7、开始bundleinstall在执行bundle时要监测多项应用安装情况包括:mysql、postgresql、sqlite3、ImageMagick等,有一项没安装都会报错,解决思路:提示安装却什么,就安装什么。yum-yinstallpostgresql-serverpostgresql-develyum-yinstallImageMagickImageMagick-develyum-yinstal
此文档下载收益归作者所有